Optimizations and isPrime bug fix
Merge branch 'master' of https://github.com/thebravoman/software_engineering_2014