OFFSET
1,1
COMMENTS
All terms are multiples of 6.
All terms are multiples of 30. - Robert Israel, Jun 17 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Pedro Caceres, 30 Ideas about Prime Numbers
EXAMPLE
25410 is in the sequence because 25411, 50821, 76231, 101641, 152461 are all prime.
MAPLE
select(t -> andmap(isprime, [t+1, 2*t+1, 3*t+1, 4*t+1, 6*t+1]), [seq(i, i=30..3*10^6, 30)]); # Robert Israel, Jun 17 2020
PROG
(PARI)
isok(m)={for(i=1, 6, if(i<>5&&!isprime(i*m+1), return(0))); 1}
{ forstep(n=0, 3*10^6, 6, if(isok(n), print1(n, ", "))) } \\ Andrew Howroyd, May 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Pedro Caceres, May 04 2020
STATUS
approved