nbmystere.py

Created by schraf

Created on February 21, 2022

184 Bytes


for n in range(1000,10000):
  try:
    [m,c,d,u] = [int(v) for v in str(n)]
    if m / u == 4 and abs(m - d) == 5 and c == 2 * d:
      print(n)
  except:
    continue