prime function is working.