login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A108979
Numbers n such that 31*n + 29 is prime.
0
0, 8, 12, 14, 18, 24, 32, 50, 60, 62, 68, 78, 84, 90, 98, 102, 104, 144, 150, 162, 164, 168, 188, 192, 194, 200, 204, 222, 230, 234, 248, 252, 260, 272, 278, 302, 318, 320, 330, 332, 342, 354, 362, 368, 384, 390, 402, 404, 410, 420, 428, 432, 440, 468, 474, 498
OFFSET
1,2
EXAMPLE
If n=0 then 31*n + 29 = 29 (prime).
If n=98 then 31*n + 29 = 3067 (prime).
MATHEMATICA
Select[Range[0, 500], PrimeQ[31#+29]&] (* Harvey P. Dale, May 15 2018 *)
PROG
(Magma) [n: n in [0..10000] |IsPrime(31*n + 29)] - Vincenzo Librandi, Nov 13 2010
(PARI) is(n)=isprime(31*n+29) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
Sequence in context: A244723 A106669 A329865 * A107071 A114414 A032455
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jul 27 2005
STATUS
approved