OFFSET
1,2
MAPLE
a:= proc(n) option remember; local k; for k from 1+
`if`(n=1, -1, a(n-1)) while not (isprime(29+(90*k))
and isprime(31+(90*k))) do od; k
end:
seq(a(n), n=1..100); # Alois P. Heinz, Jul 23 2013
MATHEMATICA
Select[Range[0, 499], PrimeQ[90# + 29] && PrimeQ[90# + 31] &] (* copied from: Alonso del Arte, Jul 22 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
J. W. Helkenberg, Jul 22 2013
STATUS
approved