A111226 Numbers n such that 5*n + 12 is prime.
1, 5, 7, 11, 17, 19, 23, 25, 29, 31, 37, 43, 49, 53, 59, 61, 65, 67, 71, 77, 89, 91, 95, 107, 109, 113, 115, 119, 121, 127, 133, 143, 149, 155, 157, 163, 169, 173, 175, 179, 185, 187, 191, 193, 197, 215, 217, 221, 235, 241, 245, 253, 257, 259, 263, 271, 283, 287
Offset: 1
Examples
If n=109 then 5*n + 12 = 557 (prime).
Programs
-
Magma
[n: n in [0..100000] |IsPrime(5*n+12)]; // Vincenzo Librandi, Nov 13 2010
-
Mathematica
Select[Range[300], PrimeQ[5 # + 12] &]
-
PARI
is(n)=isprime(5*n+12) \\ Charles R Greathouse IV, Jun 13 2017