Automatic commit performed through alias...

This commit is contained in:
Shaun Setlock
2020-05-30 19:10:39 -04:00
parent 925cb57d70
commit 46960540a2
6 changed files with 865 additions and 6 deletions

46
problems/006_problem.py Executable file
View File

@@ -0,0 +1,46 @@
#!/usr/bin/env python
# Problem 6:
#
# The sum of the squares of the first ten natural numbers is,
# 1^2+2^2+...+10^2=385
#
# The square of the sum of the first ten natural numbers is,
# (1+2+...+10)^2=55^2=3025
#
# Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025385=2640
#
# Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
#
#
# 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
@decorators.function_timer
def main():
pass
main()