OFFSET
1,1
COMMENTS
a(22) > 1211303. - J.W.L. (Jan) Eerland, Dec 08 2022
FORMULA
MAPLE
for i from 1 do
p := ithprime(i) ;
if isprime(2^(numtheory[pi](p-1))-p) then
printf("%d, \n", p) ;
end if;
end do: # R. J. Mathar, Jul 11 2014
MATHEMATICA
p = 2; lst = {}; While[p < 800001, If[ PrimeQ[ 2^(PrimePi@ p-1) - p], AppendTo[lst, p]; Print@ p]; p = NextPrime@ p]; lst
n=1; Monitor[Parallelize[While[True, If[PrimeQ[2^(PrimePi[Prime[n]-1])-Prime[n]], Print[Prime[n]]]; n++]; n], n] (* J.W.L. (Jan) Eerland, Dec 08 2022 *)
PROG
(PARI) is(n)=isprime(n) && isprime(2^primepi(n-1)-n) \\ Charles R Greathouse IV, Feb 25 2017
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert G. Wilson v, Jul 09 2014
EXTENSIONS
a(21) from J.W.L. (Jan) Eerland, Dec 08 2022
STATUS
approved