Adding some functions to prime helper module