Skip to main content

Helper functions for Project Euler

Project description

Some useful functions that are helpful in completing Project Euler (projecteuler.net) problems.

# Description

This package contains 10 moduls * divisors(n): returns a list of divisors of net * prime_factors(n): returns a list of the prime factors of n * is_prime(n): check if n is prime * sieve_of_eratosthenes(n): returns a list of all prime numbers < n * is_palindrome(n): checks if n is a palindromic numbers * is_pandigital(n): n is a m-digit pandigital number if it contains all digits 1-m exactly once * is permutation(a, b): checks if a and b are permutations of each other * coprime(a, b): check if a and b are coprime * totient(n): returns Euler’s totient functions * generalized_hamming(x, n): Checks if integer x has no prime factors larger than n

# Installation

`bash pip install euler_helper `

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

euler_helper-0.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file euler_helper-0.3.tar.gz.

File metadata

  • Download URL: euler_helper-0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for euler_helper-0.3.tar.gz
Algorithm Hash digest
SHA256 f2618bda5f31a09a54ecf5337f580ed6543052b15890dbcad94da678bc345f28
MD5 a26f8adbae7e39e4b28b8e69fb8ae3e2
BLAKE2b-256 a92118aadbcb4f1edabe77dd9ef34c966713b76c1385fc133169007d41034ea4

See more details on using hashes here.

Supported by

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