Added is-prime function