Accounts for num = 1. 1 is not prime.