Files
euler-project/problems/005_problem.py
2020-04-20 15:01:18 -04:00

35 lines
862 B
Python
Executable File

#!/usr/bin/env python
# Problem 5:
#
# 2520 is the smallest number that can
# be divided by each of the numbers
# from 1 to 10 without any remainder.
#
# What is the smallest positive number
# that is evenly divisible by all of the
# numbers from 1 to 20?
#
import decorators # Typically imported to compute execution duration of functions.
import time # Typically imported for sleep function, to slow down execution in terminal.
def compute_modulus(divisor,dividend):
"""
Returns modulus of two passed integers.
is_palindrome(divisor, dividend)
param 'divisor': Integer to be divided by dividend.
param 'dividend': Integer dividing the divisor.
"""
pass
@decorators.function_timer
def main():
print("The largest palindrome number which is a product of two numbers of length {} is {} ... ".format("foo","foo"))
main()