Initial release

This commit is contained in:
Francois JUMELLE
2021-05-03 22:32:40 +02:00
commit 20526d93c8
928 changed files with 452368 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
mini = 109
maxi = 491
def only_one(n):
sol = list()
for i in range(2, n//4+1):
for j in range(2, n//i+1):
for k in range(2, n//i//j+1):
if i*j*k == n:
if len(sol)>1:
return False
else:
if sorted((i,j,k)) not in sol:
sol.append(sorted((i,j,k)))
return len(sol)==1
solution = list()
for i in range(mini, maxi+1):
if only_one(i):
solution.append(i)
print(solution)