Project Euler #110: Diophantine reciprocals II

  • + 0 comments

    Keywords: primes up to , heap, set or dict of seen values, list of prime exponents. For example, 130754415038 should results in 307916385330322622578697205433200 ([4, 4, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) instead of 1602387094135655108133744107956740 ([2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]).