added arrayHelpers.last, some refactoring for the primeHelpers, solved
problem #5 and #10