implemented fucked up version of prime calculator.