OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
MATHEMATICA
r=2^(1/2); h=1/2; a[n_]:=Floor[n*r+h];
Table[a[n], {n, 1, 120}] (* A022846, int. nearest 2^(1/2) *)
t1={}; Do[If[PrimeQ[a[n]], AppendTo[t1, a[n]]], {n, 1, 600}]; t1
t2={}; Do[If[PrimeQ[a[n]], AppendTo[t2, n]], {n, 1, 600}]; t2
t3={}; Do[If[MemberQ[t1, Prime[n]], AppendTo[t3, n]], {n, 1, 300}]; t3
PROG
(PARI) isok(k) = isprime(floor(1/2+k*sqrt(2))); \\ Michel Marcus, Jan 30 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 23 2011
STATUS
approved