login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037174 Primes which are not the sum of consecutive composite numbers. 2

%I

%S 2,3,5,7,11,13,47,61,73,107,167,179,313,347,421,479,719,863,1153,1213,

%T 1283,1307,1523,3467,3733,4007,4621,4787,5087,5113,5413,7523,7703,

%U 9817,10333,12347,12539,13381,17027,18553,19717,19813,23399,26003,31873,36097,38833

%N Primes which are not the sum of consecutive composite numbers.

%H T. D. Noe, <a href="/A037174/b037174.txt">Table of n, a(n) for n = 1..3492</a> (terms less than 2*10^9)

%p N:= 5000:

%p primes,comps:= selectremove(isprime,{$2..N}):

%p M:= nops(comps):

%p X:= primes:

%p for n from 1 to floor(sqrt(2*N)) do

%p i:= 1;

%p T:= add(comps[k],k=1..n);

%p while T <= N do

%p X := X minus {T};

%p if i + n > M then break fi;

%p T := T + comps[i+n] - comps[i];

%p i := i+1;

%p od;

%p od:

%p X;

%p # _Robert Israel_, Jun 24 2008

%K nonn

%O 1,1

%A _Naohiro Nomoto_

%E More terms from _Jud McCranie_, Jul 12 2000

%E Corrected by _T. D. Noe_, Aug 15 2008

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 20:01 EDT 2020. Contains 333103 sequences. (Running on oeis4.)