OFFSET
0,1
COMMENTS
Numbers n = 10*m such that none of n + 1, n + 3, n + 7, n + 9 are prime.
It is often possible to change the base 10 representation of a composite number into the representation of a prime by changing a single digit. That's not possible for the numbers in this sequence. - Alonso del Arte, Aug 25 2017
LINKS
Daniel Starodubtsev, Table of n, a(n) for n = 0..10000
EXAMPLE
Given that 201 = 3 * 67, 203 = 7 * 29, 207 = 3^2 * 23, 209 = 11 * 19, we conclude that 200 is in the sequence.
210 is not in the sequence because 211 is prime.
MATHEMATICA
Select[10Range[500], NextPrime[#] - # > 10 &] (* Alonso del Arte, Aug 25 2017 *)
Select[10 Range[300], NoneTrue[#+{1, 3, 7, 9}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 28 2020 *)
PROG
(PARI) decadenopr(n1, n2) = { forstep(x=n1, n2, 10, if(!isprime(x+1) && !isprime(x+3) && !isprime(x+7) && !isprime(x+9), print1(x", "); ); ); }
(Magma) [10*n: n in [0..300] | forall{i: i in [1, 3, 7, 9] | not IsPrime(10*n+i)}]; // Bruno Berselli, Jun 17 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Cino Hilliard, Jan 04 2003
STATUS
approved