Submitted answer for Problem 7.
Prime numbers associated functions are carried out into common module.