← RoseCode

ROSECODE 346

Binary Quadratic Representation

Philippe_57721 · Programming ·

It can be proved that a prime number of form 5n+1 has a unique representation by the binary quadratic form x2+3xy+y2

For instance 10000000711=143652+3×14365×79734+797342

Find this representation for the first 100 prime numbers 1 modulo 5 and >1050

Answer format: x,y where x<y

[My timing: 7 sec]