about | help | code help+videos | done | prefs |
isPrime
Given integer num1, determine if it is prime. A prime number is only divisible by itself and 1. For instance, 7 is prime because it is only evenly divisible by 1 and 7 ( itself ). 8 is not prime because it has the divisors : 1,2,4,8 isPrime(4) → false isPrime(2) → true isPrime(5) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy