Files
euler-project/problems/006_problem/006_problem.py
2020-08-02 07:38:10 -04:00

47 lines
1.1 KiB
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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()