prime number

Forum discussion tagged with prime number.
  1. G

    Python codecademy question about indentation/else/return

    So I'm going through the codecademy python course and one assignment is to create a function that can determine if a number is prime or not. I don't understand what the difference is between these two examples. The first one doesn't work but the second one does. I get this error message when...