A package for the calculation, querying and lsiting of primes. prime products and non trivial zeros
Project description
#PrimePackage v1.1.4
#to install pip install primepackage
#import primepackage
#This package defines primes as solutions to the riemann hypothesis. therefore all prime products are also treated as primes i.e 3*5 = 15 15v is a prime product and therefore treated as prime
#FUNCTIONS randomprime() primelist() riemannlist() isprime() isriemann()
#to calculate a random prime = primepackage.randomprime(seed) seed can be left empty but will return a value less than 589.
#if a seed is passed into randomprime() it is possible to calculate larger prime values.
#primelist() returns a list of prime numbers package.primelist(start, end) returns a list of primes from the start and up to the end
#riemannlist() works as primelist does
#isprime() and isriemann() return a boolean value for if the number is a prime/prime product or Riemann non trivial zero (rounded to the nearest integer)
#NEW FUNCTIONS
firstquadprime(start,end, n)
returns a list of first quadrant primes between the start and end values that are on the plane n
fourthquadprime(start, end, n)
returns a list of fourth quadrant primes between the start and end values that are on the plane n
superprime(start, end, n)
returns a list of super primes between the start and end values that are on the plane n
subprime(start, end, n)
returns a list of sub primes between the start and end values that are on the plane n
superfirstprime(start, end, n)
returns a list of super first quadrant primes between the start and end values that are on the plane n
superfourthprime(start, end, n)
returns a list of super fourth quadrant primes between the start and end values that are on the plane n
subfirstprime(start, end, n)
returns a list of sub first quadrant primes between the start and end values that are on the plane n
subfourthprime(start, end, n)
returns a list of sub fourth primes between the start and end values that are on the plane n
aprime(index, quadrant, position,plane)
returns a single prime of a specified index, on a specfied quadrant 1 or 4, in a given position super, or sub on plane from 2 onwards.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for primepackage-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f34fd6dcc133ac6f99998d9d1c1d13316d2aaf52f2a32189e897d57a6cbd556b |
|
MD5 | 5ebf7dd807da5bd73210aaf3ada63dd9 |
|
BLAKE2b-256 | 3cbdd87f3a40b4abae9bee74a71b9f689d6ff4e0184a169b55b7a8aec361a9ba |