OFFSET
1,1
COMMENTS
The primes may be on adjacent sides of Ulam square prime-spiral. 7 8 9 / 6 1 2 / 5 4 3/...
EXAMPLE
The 3 primes between 4^2=16 (even) and 5^2=25 (odd) are just a(3)=17, a(4)=19 and a(5)=23.
MATHEMATICA
f[n_] := Select[Range[(2n)^2, (2n + 1)^2], PrimeQ]; Flatten@Array[f, 12] (* Ray Chandler, May 03 2007 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Donald S. McDonald, Jan 09 2003
EXTENSIONS
Extended by Ray Chandler, May 03 2007
STATUS
approved