Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def delit(n):
- ans = []
- d_l = 2
- while d_l * d_l <= n:
- if n % d_l == 0:
- ans.append(d_l)
- d_b = n // d_l
- if d_b != d_l:
- ans.append(d_b)
- d_l += 1
- ans.sort()
- return ans
- def isprime(n):
- d_l = 2
- while d_l * d_l <= n:
- if n % d_l == 0:
- return False
- d_l += 1
- return True
- for i in range(81_234, 134_689 + 1):
- if len(delit(i)) == 3:
- print(i, delit(i))
Advertisement
Add Comment
Please, Sign In to add comment