doesn't print out nulls, but still prints numbers that aren't prime