Automatic commit performed through alias...
This commit is contained in:
@@ -11,12 +11,28 @@
|
|||||||
# numbers from 1 to 20?
|
# numbers from 1 to 20?
|
||||||
#
|
#
|
||||||
|
|
||||||
import decorators # Typically imported to compute execution duration of functions.
|
|
||||||
|
# Standard Imports:
|
||||||
|
# -------------------
|
||||||
|
|
||||||
import time # Typically imported for sleep function, to slow down execution in terminal.
|
import time # Typically imported for sleep function, to slow down execution in terminal.
|
||||||
import typing
|
import typing
|
||||||
|
import sys
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
|
# Imports from Virtual Environment for this Project:
|
||||||
|
# ---------------------------------------------------
|
||||||
|
|
||||||
|
sys.path.append('/home/shaun/code/github/euler_project/py_euler_project/venv')
|
||||||
import numpy
|
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
|
# Create function that finds the next
|
||||||
# prime number when supplied with an
|
# prime number when supplied with an
|
||||||
# intitial integer.
|
# intitial integer.
|
||||||
@@ -127,8 +143,10 @@ def main():
|
|||||||
|
|
||||||
print(product)
|
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"))
|
# 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
|
||||||
|
}
|
||||||
119
requirements.txt
119
requirements.txt
@@ -1,81 +1,54 @@
|
|||||||
argcomplete==1.10.0
|
|
||||||
astroid==2.3.3
|
astroid==2.3.3
|
||||||
blivet==3.1.7
|
attrs==19.3.0
|
||||||
blivet-gui==2.1.12
|
backcall==0.1.0
|
||||||
CairoSVG==1.0.20
|
bleach==3.1.4
|
||||||
cffi==1.12.3
|
decorator==4.4.2
|
||||||
chardet==3.0.4
|
defusedxml==0.6.0
|
||||||
cupshelpers==1.0
|
entrypoints==0.3
|
||||||
dbus-python==1.2.8
|
importlib-metadata==1.6.0
|
||||||
decorator==4.4.0
|
ipykernel==5.2.1
|
||||||
distro==1.4.0
|
ipython==7.13.0
|
||||||
gpg==1.13.1
|
ipython-genutils==0.2.0
|
||||||
humanize==0.5.1
|
ipywidgets==7.5.1
|
||||||
idna==2.8
|
|
||||||
initial-setup==0.3.76
|
|
||||||
iotop==0.6
|
|
||||||
isort==4.3.21
|
isort==4.3.21
|
||||||
langtable==0.0.51
|
jedi==0.17.0
|
||||||
|
Jinja2==2.11.2
|
||||||
|
jsonschema==3.2.0
|
||||||
|
jupyter==1.0.0
|
||||||
|
jupyter-client==6.1.3
|
||||||
|
jupyter-console==6.1.0
|
||||||
|
jupyter-core==4.6.3
|
||||||
lazy-object-proxy==1.4.3
|
lazy-object-proxy==1.4.3
|
||||||
libcomps==0.1.15
|
MarkupSafe==1.1.1
|
||||||
libvirt-python==5.6.0
|
|
||||||
lxml==4.4.0
|
|
||||||
mccabe==0.6.1
|
mccabe==0.6.1
|
||||||
notify2==0.3.1
|
mistune==0.8.4
|
||||||
ntplib==0.3.3
|
nbconvert==5.6.1
|
||||||
olefile==0.46
|
nbformat==5.0.6
|
||||||
onboard==1.4.1
|
notebook==6.0.3
|
||||||
ordered-set==3.1
|
numpy==1.18.3
|
||||||
pexpect==4.7.0
|
pandocfilters==1.4.2
|
||||||
pid==2.2.3
|
parso==0.7.0
|
||||||
Pillow==6.2.2
|
pexpect==4.8.0
|
||||||
ply==3.11
|
pickleshare==0.7.5
|
||||||
powerline-status==2.7
|
prometheus-client==0.7.1
|
||||||
productmd==1.25
|
prompt-toolkit==3.0.5
|
||||||
psutil==5.6.7
|
|
||||||
ptyprocess==0.6.0
|
ptyprocess==0.6.0
|
||||||
pwquality==1.4.2
|
Pygments==2.6.1
|
||||||
pycairo==1.18.1
|
|
||||||
pycparser==2.14
|
|
||||||
pycups==1.9.74
|
|
||||||
pycurl==7.43.0.2
|
|
||||||
pydbus==0.6.0
|
|
||||||
pyenchant==2.0.0
|
|
||||||
pygit2==0.28.2
|
|
||||||
PyGObject==3.34.0
|
|
||||||
pyinotify==0.9.6
|
|
||||||
pykickstart==3.21
|
|
||||||
pylint==2.4.4
|
pylint==2.4.4
|
||||||
pyparted==3.11.2
|
pyrsistent==0.16.0
|
||||||
PySocks==1.7.0
|
python-dateutil==2.8.1
|
||||||
pystray==0.14.3
|
pyzmq==19.0.0
|
||||||
python-augeas==0.5.0
|
qtconsole==4.7.3
|
||||||
python-dateutil==2.8.0
|
QtPy==1.9.0
|
||||||
python-meh==0.48
|
Send2Trash==1.5.0
|
||||||
python-pam==1.8.4
|
six==1.14.0
|
||||||
python-xapp==1.8.1
|
terminado==0.8.3
|
||||||
python-xlib==0.26
|
testpath==0.4.4
|
||||||
pytz==2019.2
|
tornado==6.0.4
|
||||||
pyudev==0.21.0
|
traitlets==4.3.3
|
||||||
pyxdg==0.26
|
|
||||||
PyYAML==5.3.1
|
|
||||||
requests==2.22.0
|
|
||||||
requests-file==1.4.3
|
|
||||||
requests-ftp==0.3.1
|
|
||||||
rpm==4.15.1
|
|
||||||
selinux==2.9
|
|
||||||
sepolicy==1.1
|
|
||||||
setools==4.2.2
|
|
||||||
setproctitle==1.1.10
|
|
||||||
setroubleshoot==1.1
|
|
||||||
simpleline==1.6
|
|
||||||
six==1.12.0
|
|
||||||
slip==0.6.4
|
|
||||||
slip.dbus==0.6.4
|
|
||||||
sos==3.8
|
|
||||||
systemd-python==234
|
|
||||||
tinycss==0.3
|
|
||||||
typed-ast==1.4.1
|
typed-ast==1.4.1
|
||||||
urllib3==1.25.7
|
wcwidth==0.1.9
|
||||||
virtualenv==16.6.2
|
webencodings==0.5.1
|
||||||
|
widgetsnbextension==3.5.1
|
||||||
wrapt==1.11.2
|
wrapt==1.11.2
|
||||||
|
zipp==3.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user