OFFSET
1,1
COMMENTS
Numbers of the form p + j^2 where p is prime and p <= 2*j. - Robert Israel, Dec 14 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
3-1^2=2, 6-2^2=2, 7-2^2=3, 11-3^2=2, ...
MAPLE
N:= 30: # to get all terms < (N+1)^2
Primes:= select(isprime, [2, seq(i, i=3..2*N, 2)]):
seq(op(map(`+`, select(`<=`, Primes, 2*j), j^2)), j=1..N); # Robert Israel, Dec 14 2018
MATHEMATICA
lst={}; Do[p=n-Floor[Sqrt[n]]^2; If[PrimeQ[p], AppendTo[lst, n]], {n, 6!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 27 2010
STATUS
approved