minor nit, div1 and div2 are 3 and 5 for the purposes of this problem, could just hardcode that if you'd like.