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
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jul 27 2005
STATUS
approved