OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..3409
EXAMPLE
67 is in the sequence because 67 is prime and 67^4 - 67^3 + 1 = 19850359 is also prime.
337 is in the sequence because 337 is prime and 337^4 - 337^3 + 1 = 12859645009 is also prime.
MAPLE
KD := proc() local a, b; a:= ithprime(n); b:= a^4 - a^3 + 1; if isprime(b) then RETURN (a); fi; end: seq(KD(), n=1..2000);
MATHEMATICA
c=0; a=2; Do[k=Prime[n]; If[PrimeQ[k^4-k^3+1], c=c+1; Print[c, " ", k]], {n, 1, 100000}];
PROG
(PARI) isok(p) = isprime(p) && isprime(p^4 - p^3 + 1); \\ Michel Marcus, Feb 27 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Feb 17 2014
EXTENSIONS
More terms from Michel Marcus, Feb 27 2014
STATUS
approved