added a new prime function