4
$\begingroup$

Im writing a program that finds the Nth happy prime number. I think it works, but to double check I want to compare what it returns for the 5000th happy prime number. The problem is, I dont know where to get a verified result. I tried to look on wiki and OEIS, but neither list a large amount of happy primes. So how else can I verify my result?

Edit: I believe that the 5000th (or maybe its the 4999th) happy prime number is 400087

$\endgroup$
4
4
$\begingroup$

When you're looking for a large list on OEIS, you should be looking in the Links and References sections, not the blurb at the top. In this case the very first link is a table of the first 10000 happy primes. Your value is indeed the 4999th.

The 5000th happy prime is 400157.

$\endgroup$
2
  • $\begingroup$ Perfect! Thanks. And my program works :) $\endgroup$ – David says Reinstate Monica Apr 2 '14 at 20:25
  • $\begingroup$ +1 where is this link exactly? Got it... $\endgroup$ – draks ... Apr 2 '14 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.