Project Euler Problem 6,7,8,9,10 in Java 6) Problem 6- Project Euler Solution in Java 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. My approach to the problem: public class squareDifference { /* * @euler project 6 * @author Niraj pate l * / public static void main(String[] args) { int sum=0,sumSquare=0; for(int num =1;num<101;num++){ sum+=num; sumSquare+=num*num; } System.out.println(sum*sum - sumSquare); } } 7) Problem 7- Project Euler Solution in Java By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? public class Prime { /* * @euler project 7 * @author Niraj pate l */