After @_Mr_Spike_ told me it takes 3 weeks to generate the 50th Fibonacci number using recursion, I created this script to check if I can do better without recursion but with iteration. Damn fast.
public class Fibonacci { public static int fibonacci(int n) { if (n <= 1) return n; int a = 0, b = 1; for (int i = 2; i <= n; i++) { int temp = b; b = a + b; a = temp ...