Skip to content

Instantly share code, notes, and snippets.

@koraysaritas
Created January 28, 2018 19:46
Show Gist options
  • Save koraysaritas/df1b1f872c17af731d686d864a37bd68 to your computer and use it in GitHub Desktop.
Save koraysaritas/df1b1f872c17af731d686d864a37bd68 to your computer and use it in GitHub Desktop.
mate1
#!/usr/local/bin/python3
from itertools import count
def stop():
raise StopIteration
every15 = set()
list(stop() if (n % 1000) in every15 else every15.add(n % 1000) for n in count(1, step=15))
print(1000 - len(every15))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment