A program to check if the given number is a prime number or not
Project description
Summary:
- [This is an efficient prime number tester program created to check if the given number is a prime number or not.]
- [The file is availabe on https://pypi.org/project/abhiprime/#files]
Steps to use:
- [Open the code editor like jupyter or google colab where you can install packages. Like in Jupyter type-]
!pip install abhiprime
- [One can also use command prompt. Open the path where python is installed and type-]
pip install abhiprime
- [Once installation is done open your IDE and type-]
import abhiprime
or
import abhprime as ap
- [Press enter]
- [Now type- abhiprime.test_prime(any number which you want to check)]
- [If you are using alias name for abhiprime then type- ap.test_prime(any number which you want to check)]
- [If you get ModuleNotFoundError (It may happen if you install via command prompt), then make sure that path specified for python is correct and is added in environment path variable.]
If you are already using abhiprime then please upgrade it, using
$ pip install --upgrade abhiprime
If upgradation is throwing error, then uninstall the previous version and install the latest version.
- After upgradation, type
import abhiprime as ap
from abhiprime import *
- Now you can use it to check the following operations:
ap.test_prime(n)- This is an efficient prime number tester program created to check if the given number is a prime number or not.
ap.prev_prime(n)- used to give the just previous prime number value from the given number n.
ap.next_prime(n)- used to give the just next prime number value from the given number n.
ap.prime_upto(n)- gives a list of prime numbers upto the given number n.
ap.range_prime(n,m)- gives a list of prime numbers between numbers n and m.
ap.fib_prime(n)- gives a list of numbers which are prime and fibonacci also.
Change Log
5.0.0(14/07/2021)
- Seventh Release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
abhiprime-5.0.0.tar.gz
(3.7 kB
view details)
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 abhiprime-5.0.0.tar.gz.
File metadata
- Download URL: abhiprime-5.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02487bb565f50b39bae4359b608f8dd64fe0adbc822674a9eeeb393c5beb5168
|
|
| MD5 |
868ead6e4eab42324fb97fabe1d6bd7e
|
|
| BLAKE2b-256 |
5c900d01ad198e144a9f634a7705b6d9c2232eed58b1860da4831c7d6aaf9d0c
|
File details
Details for the file abhiprime-5.0.0-py3-none-any.whl.
File metadata
- Download URL: abhiprime-5.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18bfc99c1e31edadbd644e2dc124b0940f064c6e439a122aa6c07cad1979eb9
|
|
| MD5 |
4f49cdafde8b3ce5c1cfe015f74945d0
|
|
| BLAKE2b-256 |
a0afdc165549981967d4d30c88a2d4eb67547d977e158d63f014fcedcf3a1c8f
|