fixed typo - unintentional brackets
fixed isPrime method
added problem 7 solution