OFFSET
1,1
COMMENTS
For all primes p, neither p nor p-1 is in the sequence. - Jon Perry, Oct 12 2014
LINKS
J. Stauduhar, Table of n, a(n) for n = 1..10000
FORMULA
There are x - 2x/log x + O(x/log^2 x) members up to x. The coefficient of the next asymptotic term depends on the quantitative version of the twin prime conjecture (though it can be bounded between -0.6796763684 and 2.4885722184, with the former conjectured to be the case). - Charles R Greathouse IV, Dec 19 2018
MAPLE
q:= n-> andmap(not isprime, [n, n+1]):
select(q, [$1..150])[]; # Alois P. Heinz, Jun 24 2021
MATHEMATICA
Select[ Range[2, 200], !PrimeQ[ # ] && !PrimeQ[ # + 1] &]
PROG
(Magma) [n: n in [1..200] | not IsPrime(n) and not IsPrime(n+1)]; // Vincenzo Librandi, Oct 17 2014
(PARI) is(n)=!isprime(n) && !isprime(n+1) \\ Charles R Greathouse IV, Dec 19 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Mar 04 2002
EXTENSIONS
Definition reworded by N. J. A. Sloane, Aug 24 2012
STATUS
approved