Identifying prime numbers with Python
Question
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
.