Im trying to get the user to input 8 times,and after that I'm printing out the array. But the while loop doesn't seem to be stopping for some reason ? Here's my code:
from numpy import*
t = array([int()]*200)
def premier(n):
b = True
for i in range(2,n//2):
if n%i==0:
b = False
return(b)
def quadruplets(t):
k=1
while k < 8:
for i in range(0,len(t),4):
t[i] = int(input("Give t of I: "))
if premier(t[i]) == False:
t[i] = int(input("Don't make this harder than it already is: "))
t[i+1]=t[i]+2
t[i+2]=t[i]+6
t[i+3]=t[i]+8
print(t)
k+=1
print("your k is now: ",k)
quadruplets(t)
print("your final table is: ",t)