1 is prime, no need to use self, divisor better name than i and use upto instead of range.