With a given integer number n, write a function to get array of all prime numbers from 1 to n.
- Number should be greater than 1.
- Return array of all prime numbers between 1 to n.
- Function should pass all test cases.
Instructions:
-
Program should be written in file prime_numbers.py
-
Function name should be get_prime_numbers.
-
Input
Type: Integer Value: 20
-
Expected Output
Type: List Value: [2,3,5,7,11,13,17,19]