Scheme Exercises
back to exercise list
previous next
Group: Exercise: 46/48
is-medium-prime:
Is the given number between 2 and 100 a prime?
Create the function "is-medium-prime" that will be given a number between 2 and 100 and will return #t if it's a prime, #f otherwise. You can try to test every number between 2 and 100, but your fingers will eventually fall off. Think about using previous exercise "is-small-prime" as a helper function or at least a helper idea. If you want to do that, you'll need to copy the code of "is-small-prime" here and then add the code for your "is-medium-prime".
|