OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..5000
EXAMPLE
prime(369) + {1,2,3,4,5,6} = {2522,2523,2524,2525,2526,2527} = {2*13*97, 3*29*29, 2*2*631, 5*5*101, 2*3*421, 7*19*19} - all products of 3 primes (A014612).
MATHEMATICA
Reap[Do[If[Union[PrimeOmega[Prime[n] + {1, 2, 3, 4, 5, 6}]] == {3},
Sow[n]], {n, 10^6}]][[2, 1]]
PROG
(Python)
from sympy import factorint, nextprime
A255194_list, p, p2 = [], 2, 3
for n in range(1, 10**6):
....if p2 - p > 6:
........for i in range(1, 7):
............fs = factorint(p+i)
............if len(fs) > 3 or sum(list(fs.values())) != 3:
................break
........else:
............A255194_list.append(n)
....p, p2 = p2, nextprime(p2) # Chai Wah Wu, Mar 01 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 16 2015
STATUS
approved