OFFSET
1,1
COMMENTS
Is this sequence infinite?
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 20000: # to get all terms <= N
Res:= 2:
Agenda:= {3, 11}:
P:= {2, 10}:
g:= proc(t) local s; s:= p*t; if s < N then s else NULL fi end proc:
while Agenda <> {} do
p:= min(Agenda);
Res:= Res, p;
newP:= map(g , P);
P:= P union newP;
Agenda:= Agenda minus {p} union select(isprime, map(`+`, newP, 1));
od:
Res; # Robert Israel, Mar 15 2019
MATHEMATICA
fa = FactorInteger; is[2, p_] = True; is[2, p_];
is[n_, p_] := PrimeQ[n] && MoebiusMu[n - 1] ≠ 0 && Union@Table[is[fa[n - 1][[i, 1]], p] || fa[n - 1][[ i, 1]] == p , {i, Length[fa[n - 1]]}] == {True}; Select[Prime[Range[10000]], is[#, 5] &]
CROSSREFS
KEYWORD
nonn
AUTHOR
José María Grau Ribas, Jan 16 2016
STATUS
approved