OFFSET
1,2
COMMENTS
Positions of records are in A200948.
EXAMPLE
n=5: 5+(1..5)^2=(6,9,13,21,30) all composite and 5+6^2=41 is prime hence a(5)=6.
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 24 2011
STATUS
approved