Identifying prime numbers with Python


A prime number (or a prime) is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers. Given a single #, n, write a function using Python to return whether or not the # is prime. Additionally, if the inputted # is prime, save it into an array, a.


Access restricted

Subscribe to premium account to see the solution.

Get premium now