Skip to content

Python 2: Prompts user, sanitizes input, and displays in command line first N primes.

Notifications You must be signed in to change notification settings

tjmaher/Find_Primes_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

find-primes

Assignment: "Write an efficient, well documented program in the language of your choice that will return the first n prime numbers".

This Python 2 program asks the user how many prime numbers they would like to find.

Their input is sanitized, then is plugged into the Sieve_of_Eratosthenes formula to calculate the first N prime numbers.

Demonstrates:

  • How to prompt a user for input
  • How to get input from a user from a command line
  • How to pass data to a function
  • How to sanitize inputs

About

Python 2: Prompts user, sanitizes input, and displays in command line first N primes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages