OFFSET
1,2
LINKS
David A. Corneth, Table of n, a(n) for n = 1..12224 (Using Luhn table from A022006)
EXAMPLE
1 is in the sequence as 100*1 + 1 = 101, 100*1 + 3 = 103, 100*1 + 7 = 107, 100*1 + 9 = 109, 100*1 + 13= 113, 100*1 + 27 = 127 are consecutive primes of the form 100k+1, 100k+3, 100k+7, 100k+9, 100k+13, 100k+27 respectively where k = 1. - David A. Corneth, Jun 21 2022
PROG
(PARI) is(n) = {my(v = [100*n+1, 100*n+3, 100*n+7, 100*n+9, 100*n+13, 100*n+27], t = 0); forprime(p = 100*n+1, oo, t++; if(v[t] != p, return(0)); if(t >= 6, return(1)))} \\ David A. Corneth, Jun 21 2022
(Python)
from sympy import nextprime
def ok(n):
t, targets = 100*n, [100*n+d for d in [1, 3, 7, 9, 13, 27]]
return all((t:=nextprime(t)) == targets[i] for i in range(6))
print([k for k in range(10**6) if ok(k)]) # Michael S. Branicky, Jun 21 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 03 2012
STATUS
approved