cheated by using Prime, will find a math method