Answer to Question #320236 in Python for Keerthi

Question #320236

Given an integer input 1 and input 2 prime encoder function returns an integer array


1
Expert's answer
2022-03-29T18:34:41-0400
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS