A111224 Numbers n such that 5*n + 7 is prime.
0, 2, 6, 8, 12, 18, 20, 24, 26, 30, 32, 38, 44, 50, 54, 60, 62, 66, 68, 72, 78, 90, 92, 96, 108, 110, 114, 116, 120, 122, 128, 134, 144, 150, 156, 158, 164, 170, 174, 176, 180, 186, 188, 192, 194, 198, 216, 218, 222, 236, 242, 246, 254, 258, 260, 264, 272, 284
Offset: 1
Examples
If n=108 then 5*n + 7 = 547 (prime).
Programs
-
Magma
[n: n in [0..300] | IsPrime(5*n+7)]; // Vincenzo Librandi, Sep 03 2010
-
Mathematica
Select[Range[0,300],PrimeQ[5#+7]&] (* Harvey P. Dale, Jun 24 2018 *)
-
PARI
is(n)=isprime(5*n+7) \\ Charles R Greathouse IV, Jun 12 2017