OFFSET
0,2
LINKS
Robert Israel, Table of n, a(n) for n = 0..322
EXAMPLE
a(3) = 41, a(4) = 443, a(5) = 48407 is the smallest prime beginning with 41+443=484.
MAPLE
A[0]:= 1: A[1]:= 3:
for n from 2 to 20 do
s:= A[n-2]+A[n-1];
for d from 1 do
p:= nextprime(10^d*s);
if floor(p/10^d)=s then A[n]:= p; break fi
od
od:
seq(A[n], n=0..20); # Robert Israel, Dec 10 2018
MATHEMATICA
a[0] = 1; a[1] = 3; a[n_] := a[n] = Module[{s = a[n - 1] + a[n - 2]}, Do[p = 10^d*s; While[! PrimeQ[p], p = NextPrime[p]]; If[Floor[p/10^d] == s, Break[]], {d, 1, 20}]; p]; Array[a, 10, 0] (* Amiram Eldar, Dec 10 2018 from the Maple code *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Sep 13 2003
EXTENSIONS
More terms from Ray Chandler, Sep 23 2003
STATUS
approved