STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
from itertools import count, islice
from sympy import isprime
def A216292_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda k: sum(int(isprime(10*k+i)) for i in (1, 3, 7, 9)) == 1, count(max(1, startvalue)))
A216292_list = list(islice(A216292_gen(), 30)) # Chai Wah Wu, Sep 23 2022
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Values of n k such that there is exactly one prime between 10n 10k and 10n 10k + 9.
(MAGMAMagma) [n: n in [1..200] | IsOne(#PrimesInInterval(10*n, 10*n+9))]; // Bruno Berselli, Sep 04 2012
approved
editing
editing
approved
Select[Range[200], PrimePi[10#+9]-PrimePi[10#]==1&] (* Harvey P. Dale, Feb 04 2015 *)
approved
editing