Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Channel created
Codementor: Python Interview: Prime NumbersWrite a program to make a list of all prime numbers less than 20.
Before starting it is important to note what a prime number is.
A prime number has to be a positive integer
Divisible by exactly 2 integers (1 and itself)
1 is not a prime number
While there are many different ways to solve this problem, here are a few different approaches.
Codementor: Python Interview: Prime Numbers
Write a program to make a list of all prime numbers less than 20.
Before starting it is important to note what a prime number is.
A prime number has to be a positive integer
Divisible by exactly 2 integers (1 and itself)
1 is not a prime number
While there are many different ways to solve this problem, here are a few different approaches.