Automatic commit performed through alias...
This commit is contained in:
@@ -11,12 +11,28 @@
|
||||
# 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.
|
||||
|
||||
# Standard Imports:
|
||||
# -------------------
|
||||
|
||||
import time # Typically imported for sleep function, to slow down execution in terminal.
|
||||
import typing
|
||||
import sys
|
||||
import pprint
|
||||
|
||||
# Imports from Virtual Environment for this Project:
|
||||
# ---------------------------------------------------
|
||||
|
||||
sys.path.append('/home/shaun/code/github/euler_project/py_euler_project/venv')
|
||||
import numpy
|
||||
|
||||
# Imports from Modules Built for this Project:
|
||||
# -----------------------------------------------
|
||||
|
||||
sys.path.append('/home/shaun/code/github/euler_project/py_euler_project/problems')
|
||||
import decorators
|
||||
|
||||
|
||||
# Create function that finds the next
|
||||
# prime number when supplied with an
|
||||
# intitial integer.
|
||||
@@ -127,8 +143,10 @@ def main():
|
||||
|
||||
print(product)
|
||||
|
||||
print(set(factor_list))
|
||||
print(numpy.array(common))
|
||||
|
||||
|
||||
# print("The largest palindrome number which is a product of two numbers of length {} is {} ... ".format("foo_list","foo"))
|
||||
|
||||
main()
|
||||
main()
|
||||
|
||||
|
||||
64
problems/005_problem_jnotebook.ipynb
Normal file
64
problems/005_problem_jnotebook.ipynb
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"#### Problem 5:\n",
|
||||
"\n",
|
||||
"2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.\n",
|
||||
"\n",
|
||||
"What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import os\n",
|
||||
"import pprint\n",
|
||||
"import time # Typically imported for sleep function, to slow down execution in terminal.\n",
|
||||
"import typing\n",
|
||||
"import decorators # Typically imported to compute execution duration of functions.\n",
|
||||
"import numpy"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.2"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 4
|
||||
}
|
||||
Reference in New Issue
Block a user