Python - Functions and Booleans

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

When I copied your code in my editor, it evaluated 9, 15, 21, etc. to be prime numbers and 2 to not be a prime number. I don't know why it evaluates 2 as not prime because since the range is (2, 2) there should be nothing in list a and the for loop shouldn't even run, making the default return True? Help...

cubingandstuff