I had in mind optimisations in only calculating half the triangle, but in the end it didn’t signify. I used the Pari issquarefree() function.
Biggest issue was forgetting telling Perl to use arbitrary precision integers.
I had in mind optimisations in only calculating half the triangle, but in the end it didn’t signify. I used the Pari issquarefree() function.
Biggest issue was forgetting telling Perl to use arbitrary precision integers.