@@ -0,0 +1,785 @@
+//https://www.hackerrank.com/contests/projecteuler/challenges/euler006%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A  %0A  final private static short MAX = 10000;%0A  %0A  public static void main(String%5B%5D args) throws IOException %7B%0A    %0A    //Construct all possible outputs%0A    final long%5B%5D vals = new long%5BMAX + 1%5D;%0A    for(short i = 2; i %3C= MAX; ++i)%7B%0A      vals%5Bi%5D = vals%5Bi-1%5D + (i-1L)*i*i;%0A    %7D%0A    %0A    //For each test case%0A    StringBuffer sb = new StringBuffer();%0A    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A    for(short T = Short.parseShort(br.readLine()); T %3E 0; --T)%7B%0A      %0A      //Get input%0A      final short N = Short.parseShort(br.readLine());%0A      %0A      //Print output%0A      sb.append(vals%5BN%5D + %22%5Cn%22);%0A    %7D%0A    System.out.print(sb);%0A  %7D%0A%7D%0A

Create euler006.java