from numba import vectorize,njit
import numpy as np
@vectorize("i2(i8)",target="parallel")
def collatz_step_counter(n):
count=0
while n!=1:
if n%2==0:
n/=2
else:
n=(3*n+1)/2
count+=1
count+=1
return count
@njit
def max_collatz_steps(num,want_data=False):
max_steps=0
max_input=0
lis=np.arange(1,num+1,2,dtype=np.int64)
lis=collatz_step_counter(lis)
max_steps=max(lis)
max_input=2*lis.argmax()+1
return max_input,max_steps
max_collatz_steps(1000000)
But when I put the @njit decorator on max_collatz_steps, it gives me one of two errors: