New Script: insanity.py
This commit is contained in:
parent
932ba2906c
commit
823e728a8d
21
insanity.py
Executable file
21
insanity.py
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
from time import sleep
|
||||||
|
timer = 0.000001
|
||||||
|
num = 100000 ** 1000
|
||||||
|
print(num)
|
||||||
|
while True:
|
||||||
|
# Even Number
|
||||||
|
if (num % 2) == 0:
|
||||||
|
num = num // 2
|
||||||
|
print(num)
|
||||||
|
sleep(timer)
|
||||||
|
else:
|
||||||
|
# Odd Number
|
||||||
|
num = num * 3 + 1
|
||||||
|
print(num)
|
||||||
|
sleep(timer)
|
||||||
|
|
||||||
|
if num == 1:
|
||||||
|
exit(0)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user