A164939 These are prime numbers p such that p^3 + p^2 + p + 2 is also prime.
3, 5, 7, 13, 23, 29, 43, 79, 89, 113, 139, 163, 193, 197, 199, 229, 233, 277, 283, 317, 367, 379, 389, 503, 619, 727, 769, 797, 829, 839, 953, 967, 977, 997, 1063, 1229, 1297, 1307, 1399, 1409, 1483, 1607, 1619, 1637, 1697, 1759, 1777, 1877, 1979, 1987, 1999
Offset: 1
Examples
3 is prime as is 3^3 + 3^2 + 3 + 2 = 41
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Prime[Range[500]],PrimeQ[ #^3 + #^2 + # + 2]&]