OFFSET
1,1
COMMENTS
The old entry with this sequence number was a duplicate of A004555.
Sequence is of positive density. - Charles R Greathouse IV, Dec 07 2012
The asymptotic density of this sequence is Sum_{p prime} (1/zeta(p) - 1/zeta(p-1)) = 0.8817562193... - Amiram Eldar, Oct 18 2020
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..881 from R. J. Mathar)
MAPLE
(Maple code for this entry and A074661)
M:=2000; ans1:=[]; ans2:=[];
for n from 1 to M do
t1:=op(2..-1, ifactors(n)); t2:=nops(t1);
m1:=0; for i from 1 to t2 do m1:=max(m1, t1[i][2]); od:
if isprime(1+m1) then ans1:=[op(ans1), n]; fi;
if isprime(m1) then ans2:=[op(ans2), n]; fi;
od:
MATHEMATICA
Select[Range[2, 100], PrimeQ[1 + Max[FactorInteger[#][[;; , 2]]]] &] (* Amiram Eldar, Oct 18 2020 *)
PROG
(PARI) isA096432(n) = if(n<2, 0, isprime(vecmax(factor(n)[, 2])+1))
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 18 2008
STATUS
approved