47 lines
1.1 KiB
Python
Executable File
47 lines
1.1 KiB
Python
Executable File
#!/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 3025−385=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()
|
||
|