OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
MAPLE
N:= 10^6: # to use values of A025475 up to N
P:= select(isprime, [2, seq(i, i=3..isqrt(N), 2)]):
B:= sort([1, seq(seq(p^i, i=2..ilog[p](N)), p=P)]):
DB:= B[2..-1]-B[1..-2]:
T:= select(t -> DB[t] <= DB[t-1] and DB[t] <= DB[t+1], [$2..nops(DB)-1]):
DB[[1, op(T)]]; # Robert Israel, Aug 21 2023
PROG
(PARI) {m=1; k=0; for(n=2, 320000, if(matsize(factor(n))[1]==1&&factor(n)[1, 2]>1, d=n-m; if((k<2||b>c)&&(!k<1&&d>=c), print1(c, ", ")); k++; m=n; b=c; c=d))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Sep 27 2003
STATUS
approved