Skip to content

commit-live-students/007-get-prime-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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]
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages