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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file primepackage-2.0.tar.gz.
File metadata
- Download URL: primepackage-2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.6 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1629489ca26af879b12f218ce73e4a178fda12460490cabc61b9052e65631a51
|
|
| MD5 |
0f979945649399de75f5c63dd87d126a
|
|
| BLAKE2b-256 |
579b9939b73604550568775a1ff0a617a114a55562ec9601c638875ee82773d7
|
File details
Details for the file primepackage-2.0-py3-none-any.whl.
File metadata
- Download URL: primepackage-2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.6 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f34fd6dcc133ac6f99998d9d1c1d13316d2aaf52f2a32189e897d57a6cbd556b
|
|
| MD5 |
5ebf7dd807da5bd73210aaf3ada63dd9
|
|
| BLAKE2b-256 |
3cbdd87f3a40b4abae9bee74a71b9f689d6ff4e0184a169b55b7a8aec361a9ba
|