ID 37: Updated function isPrime; removed redundant guard.