Computer Science, asked by khushisingh960877, 3 months ago

write a program to input 10 numbers in a list and print all prime numbers present in the list

Answers

Answered by OmAnant5
0

Explanation:

Given two positive integers start and end. The task is to write a Python program to print all Prime numbers in an Interval.

rst few prime numbers are {2, 3, 5, 7, 11.}.

rst few prime numbers are {2, 3, 5, 7, 11.}.The idea to solve this problem is to iterate the val from start to end using a for loop and for every number, if it is greater than 1, check if it divides n. If we find any other number which divides, print that value.

Attachments:
Similar questions