You are viewing a single comment's thread. Return to all comments →
Python: def findDigits(n): return sum(1 if j!=0 and n%j==0 else 0 for j in [int(i) for i in str(n)])
Seems like cookies are disabled on this browser, please enable them to open this website
Find Digits
You are viewing a single comment's thread. Return to all comments →
Python: def findDigits(n): return sum(1 if j!=0 and n%j==0 else 0 for j in [int(i) for i in str(n)])