1. Prime Numbers

Function that returns a list of all prime numbers up to a given number. A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. For example, 2, 3, 5, 7, and 11 are prime numbers.

image

(as a beginner in Python, Mr. Mosh tutorials is very helpful and easy to understand. Thank You!)