problem 27

got stuck for a long time because i wasnt marking negative numbers as non-prime
oops