A119609 p^2-p-1 that is not prime, where p is prime.
1, 155, 341, 505, 1331, 1639, 1805, 2755, 3421, 5255, 6161, 6805, 7831, 10505, 11341, 11771, 12655, 18631, 22649, 24491, 26405, 27721, 29755, 31861, 36289, 37055, 39401, 44309, 49505, 51301, 52211, 54055, 56881, 62749, 65791, 68905, 73169
Offset: 1
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[q: p in PrimesUpTo(300) | IsPrime(p) and not IsPrime(q) where q is p^2 - p - 1] // Vincenzo Librandi, Sep 08 2012
-
Mathematica
lst = {}; Do[If[PrimeQ[p] && ! PrimeQ[p^2 - p - 1], AppendTo[lst, p^2 - p -1]], {p, 300}]; lst (* Vincenzo Librandi, Sep 08 2012 *)
Comments