A commons library for Project Euler problems.
Project description
Leonhard
A commons library for Project Euler problems.
Installation
pip install leonhard
Usage
>>> from leonhard import leonhard
>>> print(leonhard.get_factors_of_positive_integer(10))
[1, 2, 5, 10]
Functionalities
get_factors_of_positive_integer
: Gets the factors of a given positive integergenerate_fibonacci_sequence
: Generates a Fibonacci sequenceis_prime
: Checks if a number is prime or not
Samples
Sample files are found in samples/
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
leonhard-1.2.0.tar.gz
(3.2 kB
view hashes)