OFFSET
1,2
COMMENTS
All powers of primes are terms.
1 is included, since it has no prime divisors.
EXAMPLE
46 is a term because 46 = 2*23, and the prime divisors 2 and 23 both begin with digit 2.
MATHEMATICA
ok[n_] := Length[Union[IntegerDigits[#][[1]] & /@ FactorInteger[n][[All, 1]]]] <= 1
Select[Range[200], ok]
PROG
(PARI) isok(k) = if(k==1, 1, my(f=factor(k)); #Set(vector(#f~, i, digits(f[i, 1])[1])) == 1); \\ Michel Marcus, May 01 2026
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bartlomiej Pawlik, Apr 30 2026
STATUS
approved
