Near instantaneous (including looking for a 4-tuple that satisfies the requirements) but that's the benefit of not doing in something bonkers like ansible.
$ cat 1.inp | time ./1.pl 4 Answer: 968 1052 = 1018336 Answer: 846 530 644 = 288756720 Answer: 1193 339 339 149 = 20428012197 0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 9376maxresident)k 0inputs+0outputs (0major+625minor)pagefaults 0swaps
@Greenbank started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Near instantaneous (including looking for a 4-tuple that satisfies the requirements) but that's the benefit of not doing in something bonkers like ansible.
$ cat 1.inp | time ./1.pl 4
Answer: 968 1052 = 1018336
Answer: 846 530 644 = 288756720
Answer: 1193 339 339 149 = 20428012197
0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 9376maxresident)k
0inputs+0outputs (0major+625minor)pagefaults 0swaps