This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Using the “primenumbers” module you can:

  1. Check if a number is prime or not. By using the isprime() function. The result is returned as either True or False.

SYNTAX: isprime(your_number)

Example: >>> import primenumbers >>> primenumbers.isprime(201) >>>False

  1. You can get a list of prime numbers within a specified limit, by using the all_PrimeNumbers_within() function. The result is returned as a list of prime numbers.

SYNTAX: all_PrimeNumbers_within(a_number) #(from 2)

Example: >>> import primenumbers >>> primenumbers.all_PrimeNumbers_within(25) >>>[2, 3, 5, 7, 11, 13, 17, 19, 23]

  1. You can use the function all_PrimeNumbers_inRange() to find prime numbers within a given range. The result is returned as a list of prime numbers.(Only available in package version 1.1.0 or later)

SYNTAX: all_PrimeNumbers_inRange(start_number, end_number)

Example: >>> import primenumbers >>> primenumbers.all_PrimeNumbers_inRange(25, 60) >>>[29, 31, 37, 41, 43, 47, 53, 59]

What New in Version: 1.1.2:

  1. Significantly Faster processing
  2. Removed bug in which ‘1’ is being considered as a prime numbers.
  3. Removed bug in which negative numbers are being considered as a prime numbers.

Keep an eye for new releases. Thank You. Feel free to mail me for improvements and suggestions at chakraborty.anubhab@gmail.com .

Release History

Release History

1.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
primenumbers-1.1.2.zip (1.0 kB) Copy SHA256 Checksum SHA256 Source Jan 21, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting