Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 548 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 548 Bytes

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. Number should be greater than 1.
  2. Return array of all prime numbers between 1 to n.
  3. 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]