Skip to content

Instantly share code, notes, and snippets.

@navichok26
Created February 7, 2021 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navichok26/d74132bc1e335b0c9eff6648ec0cdba3 to your computer and use it in GitHub Desktop.
Save navichok26/d74132bc1e335b0c9eff6648ec0cdba3 to your computer and use it in GitHub Desktop.
infa
for i in range(33333, 55555+1):
sum_del = 0
for d1 in range(2, int(i**0.5)+1):
if i%d1 == 0:
d1_norm = True
for j in range(2, int(d1**0.5)+1):
if d1%j == 0:
d1_norm = False
d2 = i//d1
d2_norm = True
for j in range(2, int(d2**0.5)+1):
if d2%j == 0:
d2_norm = False
if d2 == d1 and d1_norm and d2_norm:
sum_del += d1
else:
if d1_norm:
sum_del += d1
elif d2_norm:
sum_del += d2
if sum_del > 250 and i%sum_del == 0:
print(i, sum_del)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment