Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Created October 17, 2022 01:11
Show Gist options
  • Select an option

  • Save galenseilis/294f37e65f1ca81775955f77091c4074 to your computer and use it in GitHub Desktop.

Select an option

Save galenseilis/294f37e65f1ca81775955f77091c4074 to your computer and use it in GitHub Desktop.
from math import factorial
import time
n = 241779
prod_n = factorial(n)
while 1:
prod_n = prod_n * (n + 1)
str_n = str(prod_n)
n += 1
if len(set(str_n)) != 10:
print('Woo hoo there it is!', time.ctime(), n, set(str_n))
break
else:
print(time.ctime(), n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment