prime-faster - Faster Prime Number Generator
Project description
prime-faster
Description
This is a small program that finds all the prime numbers up to a given number faster than the naive algorithm.
Install
$ pip install prime-faster
Usage
import primefaster
print(primefaster.is_prime(7))
# True
print(primefaster.get_prime(10))
# [2, 3, 5, 7]
License
MIT License Copyright (c) 2022 Takahashi Akari akaritakahashioss@gmail.com
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
prime-faster-0.0.9.tar.gz
(2.6 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 prime-faster-0.0.9.tar.gz.
File metadata
- Download URL: prime-faster-0.0.9.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ad6692635ba25f0dddfb024d56a8dca70ba6f716816406201c959e6ec1a9cf
|
|
| MD5 |
be8cc0ed15814abcff61f1b02869ed63
|
|
| BLAKE2b-256 |
8f030325b4efacbc9dbabff173f18bdb3c702f406fd115402561017e1623b176
|
File details
Details for the file prime_faster-0.0.9-py3-none-any.whl.
File metadata
- Download URL: prime_faster-0.0.9-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86ae43d83d4882acc4138f8f31119ffb5d1da6062870149449ca5f0b6669a0d
|
|
| MD5 |
aca9edebe4ea077f8c6f0cb80a646293
|
|
| BLAKE2b-256 |
9813cc644c724daea87089ad1e826e7f9ac0d972daafec9750c48a3ebd361999
|