trying to implement prime numbers