The solution for Ch 7 Challenge A (Prime Numbers) incorrectly identifies “1” as a prime number.
The offending code is:
if number <= 3 {
return true
}
Replacing that code with the following will correct the issue:
if number < 2 {
return false
}