Can you point me towards some source code where a human can't find the algorithmic complexity?
def collatz(n):
while n != 1:
print(n)
if n % 2 == 0:
n = n // 2
else:
n = n * 3 + 1
print(1) def collatz(n):
while n != 1:
print(n)
if n % 2 == 0:
n = n // 2
else:
n = n * 3 + 1
print(1)
Otherwise, n = 1 terminates, and n != 1 gets stuck looping at lines 2-3.[0]: https://en.wikipedia.org/wiki/Primitive_recursive_function