OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(6) = 49 is a term because its sum of digits is 13, a prime, while the only prime factor of 49 is 7, and 13 > 7.
The first term whose digital sum is composite is a(237) = 65536 = 2^16, whose digital sum is 25.
MAPLE
filter:= proc(n)
min(NumberTheory:-PrimeFactors(convert(convert(n, base, 10), `+`))) > max(NumberTheory:-PrimeFactors(n))
end proc:
select(filter, [$1..10000]);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert Israel, Dec 29 2025
STATUS
approved
