OFFSET
1,1
COMMENTS
See "conjecture generalized" at A184774.
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
Select[Floor[Sqrt[2]Range[1000]+1/2], PrimeQ] (* Harvey P. Dale, Oct 31 2011 *)
PROG
(PARI) lista(nn) = for (k=1, nn, if (isprime(p=floor(1/2+k*sqrt(2))), print1(p, ", "))); \\ Michel Marcus, Jan 30 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 23 2011
STATUS
approved