OFFSET
1,1
COMMENTS
n == 0 (mod 2). n == 2 (mod 3). n == 3 or 4 (mod 5). - Jason Yuen, Sep 02 2024
EXAMPLE
284 is OK because 2*284+3, 3*284+5, 5*284+7, 7*284+11, 11*284+13 and 13*284+17 all are primes.
MATHEMATICA
s={}; Do[If[Union[PrimeQ/@Table[Prime[k]*n+Prime[k+1], {k, 6}]]=={True}, s=Append[s, n]], {n, 2, 1000000, 2}]; s
PROG
(PARI) \\ See isok from A108117
for(n=1, 2*10^6, if(isok(n, 6), print1(n", "))) \\ Jason Yuen, Sep 02 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jun 03 2005
EXTENSIONS
a(22)-a(33) from Jason Yuen, Sep 02 2024
STATUS
approved