Prime numbers from 2 to n in python

The program must accept an integer N as the input. The program must print all the prime numbers from 2 to N [inclusive of N] as output.

Boundary Condition[s]:
2

Chủ Đề