← RoseCode

ROSECODE 373

Twins

sinan · Programming ·

Consider integer sided Pythagorean triangles with their hypotenus and shorter leg equal to twin primes (*). Using four of such triangles and a rectangle with sides also equal to twin primes (*), we draw a parallelogram as seen below. Find such parallelograms with their area less than 1019? Answer format: count,sum_of_areas mod 264 Example: 1,169 (for area < 103) [My timing: <1m] * Note that twin primes here does NOT mean a pair of primes with a difference of 2, rather any twin primes pair where a twin prime means a prime number that is either 2 less or 2 more than another prime number. For example for the triple (5,12,13), we have 5 and 13 which are two twin primes.