Implemented trial division and made input/output hex