OFFSET
1,1
FORMULA
a(2n-1)==3 (mod 4) and a(2n)==1 (mod 4).
MATHEMATICA
a[1] = 3; a[n_] := a[n] = Block[{k}, k = a[n - 1] + 2; While[ ! PrimeQ[k], k = k + 4]; Return[k]; ]; Table[a[n], {n, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Jan 13 2005
EXTENSIONS
Edited and extended by Ray Chandler, Jan 19 2005
STATUS
approved