Python Programming Basics - Assignment

Problem Statement:

With a given integer number n, write a function to get array of all prime numbers from 1 to n.

  1. Define function 'get_prime_numbers' which will accept number argument.
  2. Number should be greater than 1.
  3. Return array of all prime numbers between 1 to n.
  4. Function should pass all test cases.