OFFSET
1,1
COMMENTS
Or numbers n such that either n-th oblong number plus 1 or 9 is prime.
Numbers n such that n^2+n+1 or n^2+n+9 is prime, but not both. [From R. J. Mathar, Feb 21 2010]
EXAMPLE
a(1)=1 because 1^2+1+1=4=nonprime and 1^2+1+9=11=prime; a(2)=2 because 2^2+2+1=7=prime and 2^2+2+9=15=nonprime; a(3)=3 because 3^2+3+1=13=prime and 3^3+3+9=21=nonprime.
MATHEMATICA
Select[Range[200], Xor@@PrimeQ[#^2+#+{1, 9}]&] (* Harvey P. Dale, Apr 26 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Feb 15 2010
EXTENSIONS
1 and 11 removed by R. J. Mathar, Feb 21 2010
STATUS
approved