OFFSET
1,1
EXAMPLE
Among the first 4 terms of the sequence, 23 is the largest prime. So a(5) = a(4)*23 -1 = 23*23 -1 = 528.
PROG
(PARI) {m=13; print1(a=2, ", "); v=[a]; for(n=2, m, b=a; v=vecsort(v); j=#v; a=0; while(a<1, k=v[j]; if(isprime(k), print1(a=b*k-1, ", "); v=concat(v, a), j--)))} \\ Klaus Brockhaus, Aug 17 2006
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Leroy Quet, Jul 03 2006
EXTENSIONS
More terms from Klaus Brockhaus, Aug 17 2006.
a(14) added by Robert C. Lyons, Nov 16 2024.
STATUS
approved