Added up to 12000 to isPrime, added 7 to factorial, fixed 8 factorial