OFFSET
1,2
COMMENTS
One and composite numbers that are the sum of two consecutive composite numbers.
Essentially the same as A151740 (except for initial term 1). - Georg Fischer, Oct 01 2018
LINKS
Karl-Heinz Hofmann, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 1st nonprime + 2nd nonprime = 0 + 1 = 1, which is nonprime;
a(2) = 3rd nonprime + 4th nonprime = 4 + 6 = 10, which is nonprime.
PROG
(Magma) m:=150; NonPrime:=[i: i in [0..m] | not IsPrime(i)]; [q: n in [1..#NonPrime-1] | not IsPrime(q) where q is NonPrime[n]+NonPrime[n+1]]; // Bruno Berselli, Apr 05 2014
(Python)
from sympy import isprime, composite
print([1] + [totest for k in range(1, 91) if not isprime(totest := composite(k) + composite(k+1))]) # Karl-Heinz Hofmann, Jan 25 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 07 2009
EXTENSIONS
Entries confirmed by R. J. Mathar, May 30 2010
STATUS
approved