login
A137999
Primes p such that (p^p-p!)/p is prime.
0
3, 5, 7, 71, 151, 157
OFFSET
1,1
COMMENTS
In spite of the given PARI code, it has been checked that the given terms are indeed primes, not just probable primes.
No further terms <= 22307 = prime(2500). - Michael S. Branicky, Sep 25 2024
PROG
(PARI) forprime( p=1, 9999, ispseudoprime(p^(p-1)-(p-1)!) & print1(p", "))
CROSSREFS
Cf. A000040.
Sequence in context: A117646 A064857 A065913 * A353141 A291438 A056145
KEYWORD
hard,more,nonn
AUTHOR
M. F. Hasler, Mar 18 2008
EXTENSIONS
Edited by T. D. Noe, Oct 30 2008
STATUS
approved