for the problem : https://www.spoj.com/problems/PRIME1/14
title : PRIME1
used python, getting error,need help,
n = int(input())
for i in range(n):
temp = list(map(int, input().split()))
for i in range(temp[0],temp[1]):
compare = int(i ** 0.5)
if i % compare != 0 and i % (compare-1) != 0:
print(i)
print("\n")
created
last reply
- 3
replies
- 810
views
- 2
users
- 1
link