1,2
Positions of records are in A200948.
Table of n, a(n) for n=1..33.
n=5: 5+(1..5)^2=(6,9,13,21,30) all composite and 5+6^2=41 is prime hence a(5)=6.
Cf. A085099, A200948.
Sequence in context: A020897 A020898 A184779 * A047277 A308198 A341437
Adjacent sequences: A200923 A200924 A200925 * A200927 A200928 A200929
nonn
Zak Seidov, Nov 24 2011
approved