Guest User

Untitled

a guest
Jun 26th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. count = 0
  2. i = 1
  3. while i <= 1000000:
  4.     # print(str(i).startswith('793'))
  5.     # print(str(i % 7 != 0) + '\n')
  6.     if str(i).startswith('793') and i % 7 != 0:
  7.         count = count + 1
  8.         i = i + 1
  9.     else:
  10.         i = i + 1
  11. print(count)
Advertisement
Add Comment
Please, Sign In to add comment