about | help | code help+videos | done | prefs |
First, solve the problem at https://codingbat.com/prob/p202587 and then come to this one. A number is called "nearly-prime" if besides, 1 and itself, it's divisible by exactly one other integer. Define a function that when passed an integer, returns true if it is nearly-prime, false otherwise. nearly_prime(77) → False nearly_prime(32) → False nearly_prime(62710561) → 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: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy