Created custom #prime? method for Integer.