Given an integer input 1 and input 2 prime encoder function returns an integer array
input numpy as np
int1 = int(input())
int2 = int(input())
for i in range(int1,int2+1):
if (num % i) == 0:
# if factor is found, set flag to True
flag = True
# break out of loop
break
Comments
Leave a comment