OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..609
MATHEMATICA
start = {1}; primes = Table[Prime[n], {n, 1, 10000}];
f[x_, y_] := If[MemberQ[primes, 2 x + 3 y], 2 x + 3 y]
b[x_] :=
Block[{w = x},
Select[Union[
Flatten[AppendTo[w,
Table[f[w[[i]], w[[j]]], {i, 1, Length[w]}, {j, 1,
Length[w]}]]]], # < 1000 &]];
t = FixedPoint[b, start] (* A192592 *)
PrimePi[t] (* A192593 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jul 05 2011
STATUS
approved