Project Euler #60: Prime pair sets

  • + 0 comments

    Solved in Python 3, time limit exceeded
    Solved in Javascript, memory exceeded
    Solved in javascript generating primes upto 999999 and then checking primes upto sqrt(n) in isprime() , testcase 14 failed.
    What to do?
    Edit: My bad, I forgot to replace "br" tag with "\n" for K=5
    Same logic failed 3 test cases it python due to TLE and Javascript passed really fast. Weird