码迷,mamicode.com
首页 > 编程语言 > 详细

PYTHON--欧拉习题一

时间:2016-04-26 22:26:14      阅读:349      评论:0      收藏:0      [点我收藏+]

标签:欧拉 python

练习题来源:

https://projecteuler.net/archives

Problem 1:

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.


问题1:

在10(不包括10)以内的自然数中,能够被3或5整除的数字有3、5、6、9,他们的和是23.

请找出1000以内(不包括1000),能被3或者5整除的自然数的和。




本文出自 “三十男人学运维” 博客,请务必保留此出处http://loyfee.blog.51cto.com/754862/1767937

PYTHON--欧拉习题一

标签:欧拉 python

原文地址:http://loyfee.blog.51cto.com/754862/1767937

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!