Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 330 Bytes

File metadata and controls

6 lines (5 loc) · 330 Bytes

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.