Skip to main content

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


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.7.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

prime_faster-0.0.7-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file prime-faster-0.0.7.tar.gz.

File metadata

  • Download URL: prime-faster-0.0.7.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for prime-faster-0.0.7.tar.gz
Algorithm Hash digest
SHA256 db4fdfc1c859da83db3599480ec31ed5e338edcff6bb459a23d97cae652a74a7
MD5 1da982cdce1af0e387c356f106096f4f
BLAKE2b-256 293fc25c617e653323f9d7a7ea94813997952a8e81eb4530eca13ab0d0f9f6e8

See more details on using hashes here.

File details

Details for the file prime_faster-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for prime_faster-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6d6f30b8f8e86f4c5b20f60932dea54092f406dce572b6a941c2751e75f8d9c1
MD5 edeca63d8f9be62bd1517eeabda187f8
BLAKE2b-256 09089de252c4809b18d1517b6465c8816846dbf184d1d3f59884b2d0fd5fe65a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page