@@ -0,0 +1,407 @@
+import java.math.BigInteger;%0A%0Apublic class thousand_digit_fibbonacci %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09BigInteger a=BigInteger.ONE, b=BigInteger.ONE;%0A%09%09int i=3; // 1 and 2 set a and b to 1%0A%09%09while (i %3C Integer.MAX_VALUE && b.toString().length() %3C 1000) %7B%0A%09%09%09BigInteger tmp = a;%0A%09%09%09a = b;%0A%09%09%09b = tmp.add(a);%0A%09%09%09if (b.toString().length() %3E= 1000) %7B%0A%09%09%09%09System.out.println(i);%0A%09%09%09%7D%0A%09%09%09i++;%0A%09%09%7D%0A%09%7D%0A%7D

thousand digit fibbonacci: java