A235484 Square numbers n such that n^2 - n - 1 is prime.
4, 9, 16, 25, 36, 49, 121, 196, 289, 324, 361, 529, 625, 729, 1024, 1296, 1681, 1849, 2916, 3600, 4225, 4761, 5184, 5929, 6400, 6724, 6889, 7569, 7744, 8464, 8649, 9604, 12100, 13689, 14641, 14884, 15876, 16129, 18225, 18496, 19044, 22201, 22500, 24025, 24649, 25281, 28224
Offset: 1
Keywords
Programs
-
Mathematica
Select[Table[n^2, {n, 100}], PrimeQ[#^2 - # - 1] &]
-
PARI
list(lim)=my(v=List()); for(n=2,sqrtint(lim\1), if(isprime(n^2-n-1), listput(v,n))); Vec(v) \\ Charles R Greathouse IV, Jun 13 2017
Comments