login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240882 Numbers m such that m - 4*k^2 is a prime for all k > 0 with k^2 < m/4. 0
6, 7, 9, 11, 15, 21, 23, 27, 33, 35, 47, 77, 83, 143, 167, 227, 437 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
No other terms with m < 1000000. - Colin Barker, Apr 14 2014
If it exists, a(18) > 10^9. - Jon E. Schoenfield, Mar 17 2024
LINKS
EXAMPLE
21 is in this sequence because 21 - 4*1^2 = 17 and 21 - 4*2^2 = 5 are both prime.
MATHEMATICA
n=6; Monitor[Parallelize[While[True, If[MemberQ[PrimeQ[Table[n-4*k^2, {k, 1, Floor[Sqrt[n/4]]}]], False]==False, Print[n]]; n++]; n], n] (* J.W.L. (Jan) Eerland, Mar 17 2024 *)
PROG
(PARI) isOK(n) = k=1; until(k^2>=n/4, if(!isprime(n-4*k^2), return(0)); k++); 1;
for(n=3, 1000000, if(isOK(n), print1(n, ", "))) \\ Colin Barker, Apr 14 2014
CROSSREFS
Cf. A240842.
Sequence in context: A175221 A094010 A100348 * A241266 A095908 A094698
KEYWORD
nonn,more
AUTHOR
EXTENSIONS
One missing term and one additional term from Colin Barker, Apr 14 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)