added new methods to Prime module as I work towards developing a more efficient solution