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!)
A270446 Positive even numbers which are neither of the form p + 2^m + 1 nor of the form p + 2^m - 1 with p prime. 1
906, 3342, 3432, 4152, 4812, 4842, 5730, 7388, 7812, 8922, 10236, 10512, 11082, 11436, 12372, 12732, 13092, 14022, 14142, 14382, 14532, 15042, 15120, 16026, 16866, 17370, 18210, 18612, 18896, 18898, 20142, 20322, 20382, 20652, 21672, 24132, 24432, 24462 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Numbers whose distance to both nearest neighbor de Polignac numbers is 1.
LINKS
MAPLE
filter:= proc(n) local m;
for m from 1 while n - 2^m > 0 do
if isprime(n - 2^m + 1) or isprime(n - 2^m-1) then return false fi
od;
true
end proc:
select(filter, [seq(i, i=4..30000, 2)]); # Robert Israel, Mar 22 2016
PROG
(Magma) lst:=[]; for n in [2..24462 by 2] do t:=Floor(Log(2, n)); c:=0; m:=0; while m le t do a:=n-2^m; if IsPrime(a+1) or IsPrime(a-1) then break; end if; c+:=1; m+:=1; end while; if c eq t+1 then Append(~lst, n); end if; end for; lst;
CROSSREFS
Cf. A006285.
Sequence in context: A330303 A181257 A235242 * A006917 A174862 A350852
KEYWORD
nonn
AUTHOR
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 March 28 22:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)