hit that green flag!
Basically, this calculates the n-sided regular polygons whose interior angle is a whole number. This is based on the formula of the sum of angles in an n-sided polygon: sum of angles in a n-sided polygon = (n-2)*180 and then I just divide it by n and check if it is a whole number. If it is, n is added to the list. #math#geometry#angles#polygons This was meant to be homework, but I was too lazy to manually generate the values of n (I mean, I'm quite sure that there is another method, but I could not find it)