官术网_书友最值得收藏!

16. Proper divisors

A divisor of a number N is any number that divides evenly into N. For example, the divisors of 12 are {1, 2, 4, 6, 12}.

The proper divisors of a number N are N's divisors, not including N itself. For example, the proper divisors of 12 are {1, 2, 4, 6}.

Write a program that finds a number's proper divisors.

主站蜘蛛池模板: 罗城| 蛟河市| 瑞昌市| 宁安市| 岑溪市| 五台县| 牟定县| 迭部县| 大荔县| 西平县| 扎兰屯市| 金山区| 克山县| 东源县| 镇原县| 嵊州市| 通山县| 兴安县| 托里县| 洱源县| 多伦县| 张家界市| 岗巴县| 诸暨市| 望江县| 建昌县| 泽普县| 静安区| 海口市| 贡觉县| 镇江市| 炉霍县| 新巴尔虎左旗| 宾阳县| 施秉县| 苍山县| 泗水县| 乐都县| 宜川县| 乌什县| 清徐县|