A056826 Primes p such that (p^p + 1)/(p + 1) is a prime.
3, 5, 17, 157
Offset: 1
References
- J.-M. De Koninck, Ces nombres qui nous fascinent, Entry 157, p. 51, Ellipses, Paris 2008.
- R. K. Guy, Unsolved Problems in Theory of Numbers, 1994 A3.
Links
- Eric Weisstein's World of Mathematics, Cyclotomic Polynomial
Programs
-
Mathematica
Do[ If[ PrimeQ[ (Prime[ n ]^Prime[ n ] + 1)/(Prime[ n ] + 1) ], Print[ Prime[ n ] ] ], {n, 1, 213} ] Do[p=Prime[n]; If[PrimeQ[(p^p+1)/(p+1)], Print[p]], {n, 100}] (* T. D. Noe, Oct 20 2003 *)
-
PARI
forprime(p=3, 1000, if(isprime((p^p+1)/(p+1)), print1(p", "))) \\ Seiichi Manyama, Mar 24 2018
Extensions
Definition corrected by Alexander Adamchuk, Nov 12 2006
Comments