OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..5500
EXAMPLE
a(2)=971: 10^3-prime(10)= 1000-29= 971 which is prime.
MAPLE
KD:= proc() local a; a:= k^3-ithprime(k); if isprime(a) then RETURN(a): fi; end: seq(KD(), k=1..1000);
MATHEMATICA
Select[Table[k^3-Prime[k], {k, 1000}], PrimeQ]
PROG
(PARI) for(k=1, 10^3, if(ispseudoprime(KD=eval((k^3-prime(k)))), print1(KD", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Sep 15 2013
STATUS
approved