A188831 Primes of the form k^2 - prime(k).
23, 71, 107, 263, 487, 677, 787, 1427, 1583, 2081, 3319, 5393, 8713, 10247, 11071, 12377, 18257, 20477, 24659, 26573, 29243, 29927, 33487, 34949, 37223, 37991, 41981, 51449, 60917, 64937, 66977, 71167, 83357, 85667, 99013, 100271, 109313, 110629, 118757
Offset: 1
Keywords
Examples
23 is here because 6^2 - prime(6) = 36 - 13 = 23.
Links
- Zak Seidov, Table of n, a(n) for n = 1..1000
Programs
-
Magma
[ a: k in [0..10000] | IsPrime(a) where a is k^2-NthPrime(k) ]; // Vincenzo Librandi, Apr 14 2011
-
Mathematica
Select[Table[k^2 - Prime[k], {k, 1000}], PrimeQ] (* T. D. Noe, Apr 14 2011 *)
Comments