SHARE
TWEET

special_numbers

a guest Feb 24th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2.  
  3. for first_digit in range(1, 10):
  4.     for second_digit in range(1, 10):
  5.         for third_digit in range(1, 10):
  6.             for fourth_digit in range(1, 10):
  7.                 if n % first_digit == 0 and n % second_digit == 0 and n % third_digit == 0 and n % fourth_digit == 0:
  8.                     print(f'{first_digit}{second_digit}{third_digit}{fourth_digit}', end=' ')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top