Skip to content

dipman/primes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prime Number Investigator

A prime number is an integer (that is, a whole number) that is greater than 1 and has only two factors: 1 and itself. Here’s a list of prime numbers (note that 1 is not considered a prime number):

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281 …

This module can be used to calculate and investigate so called prime numbers.

is_prime(num):

Use this function to investigate whether a given integer number is prime or not.

find_primes(N):

Use this function to get a list of prime numbers from 2 up to N.

Notes

Thanks to the site for its valuable contents:

https://inventwithpython.com/hacking/chapter23.html

About

Prime number calculation toolkit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages