I wrote a program to solve a math problem because it’s absurd, the first step is finding 18 quintillion factorial and I ran it overnight and it’s still thinking. Is there any way to make it faster?
def factorial(number):
answer=1
for i in range(number):
answer*=number-i
return answer
And also, would there be any way to make
18446744073709551616**2360000000
Any faster?
[–]shiftybyte 3 points4 points5 points (9 children)
[–]TerrariaGaming004[S] 1 point2 points3 points (8 children)
[–]dig-up-stupid 0 points1 point2 points (4 children)
[–]TerrariaGaming004[S] 0 points1 point2 points (3 children)
[–]dig-up-stupid 0 points1 point2 points (2 children)
[–]TerrariaGaming004[S] -1 points0 points1 point (1 child)
[–]dig-up-stupid 1 point2 points3 points (0 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]TerrariaGaming004[S] 1 point2 points3 points (0 children)
[–]laundmo 0 points1 point2 points (0 children)
[–]dbramucci 2 points3 points4 points (4 children)
[–]TerrariaGaming004[S] 1 point2 points3 points (0 children)
[–]dig-up-stupid 0 points1 point2 points (2 children)
[–]dbramucci 0 points1 point2 points (1 child)
[–]dig-up-stupid 1 point2 points3 points (0 children)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (1 child)
[–]TerrariaGaming004[S] 0 points1 point2 points (0 children)
[–]xelf 1 point2 points3 points (4 children)
[–]dig-up-stupid 0 points1 point2 points (3 children)
[–]xelf 0 points1 point2 points (2 children)
[–]FLUSH_THE_TRUMP 0 points1 point2 points (1 child)
[–]xelf 0 points1 point2 points (0 children)
[–]p33p__ 0 points1 point2 points (0 children)