Implemented primeDecompose function and replaced Integer with Int