login
A156154
Primes p such that prime(p)=2 (mod p), where prime(p)=A000040(p) is the p-th prime.
4
3, 13, 73, 637321, 27067133
OFFSET
1,1
FORMULA
a(n) = A000040(A156155(n)) ; A156154 = intersection of A000040 and A023144.
MATHEMATICA
Select[Prime[Range[17*10^5]], Mod[Prime[#], #]==2&] (* Harvey P. Dale, Dec 28 2022 *)
PROG
(PARI) p=c=0; until(0, until( isprime(c++), p=nextprime(p+1)); (p-2)%c & next; print1( c", "))
CROSSREFS
Cf. A156153.
Sequence in context: A162161 A119013 A190878 * A334785 A349533 A020094
KEYWORD
hard,more,nonn
AUTHOR
M. F. Hasler, Feb 04 2009
STATUS
approved