Programming Examples
Python program that searches for prime numbers from 15 through 25
WAP that searches for prime numbers from 15 through 25.
Solution
#WAP that searches for prime numbers from 15 through 25.
for a in range(15,25):
k=0
for i in range(2,a//2+1):
if a%i==0:
k=k+1
if k==0:
print(a)
Output/ Explanation: