A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ร 99.
Find the largest palindrome made from the product of two 3-digit numbers.
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.
$ java -version
java version "11.0.6" 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
$ gradlew --version
------------------------------------------------------------
Gradle 5.2.1
------------------------------------------------------------
gradlew clean package
gradlew clean test