OFFSET
1,1
COMMENTS
All prime numbers whose last digit is 1 have this property.
Only numbers with at most 9 distinct prime factors appear in this sequence.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
272 is such a number because 272 = 2^4 * 17. It has 2 distinct prime factors {2,17} and its last digit is 2.
MATHEMATICA
Select[Range@500, Last@IntegerDigits@#==PrimeNu@#&]
Select[Range[500], PrimeNu[#]==NumberDigit[#, 0]&] (* Harvey P. Dale, Aug 12 2021 *)
PROG
(PARI) isok(m) = omega(m) == (m % 10); \\ Michel Marcus, Feb 24 2020
(Python)
from sympy import factorint
def ok(n): return n > 1 and n%10 == len(factorint(n))
print([k for k in range(460) if ok(k)]) # Michael S. Branicky, Nov 12 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giorgos Kalogeropoulos, Feb 23 2020
EXTENSIONS
a(49) and beyond from Michael S. Branicky, Nov 12 2021
STATUS
approved