OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1092 (terms below 10^11)
EXAMPLE
349 is a term since 350 = 2*5^2*7, 351 = 3^3*13, 352 = 2^5*11 are the numbers between 349 and the next prime 353; 857 is a term since 858 = 2*3*11*13 is the only number between 857 and the next prime 859.
MATHEMATICA
maxPrime[n1_, n2_] := FactorInteger[#][[-1, 1]] & /@ Range[n1, n2]; Select[Range[120000], PrimeQ[#] && Max[maxPrime[# + 1, NextPrime[#] - 1]] == 13 &] (* Amiram Eldar, Feb 08 2020 *)
PROG
(PARI) {forprime(p=2, 120000, q=nextprime(p+1); m=0; j=p+1; while(j<q&&m<=13, f=factor(j); a=f[matsize(f)[1], 1]; if(m<a, m=a); j++); if(m==13, print1(p, ", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Feb 10 2003
STATUS
approved