about | help | code help+videos | done | prefs |
People will often say that a number "looks prime" if all of its digits are odd, and the number does not end with a 5. Given a 3 digit number, return true if that number looks prime, and false otherwise. Note that 0 is even, not odd. looksPrime(713) → true looksPrime(324) → false looksPrime(511) → 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: 100
Copyright Nick Parlante 2017 - privacy