ProjectEuler-Problem10-Summation of primes
来源:互联网 发布:论文数据伪造 编辑:程序博客网 时间:2024/06/05 19:44
# @Time : 2017/7/6 20:54# @Author : wanyang# @Mail :wanyangnumberone@gmail.com# @Git :https://github.com/wanyang19880625# @Question:https://projecteuler.net/problem=10# @Answer :142913828922from math import *# 上限theUpNumber = 2000000# 判断是否是质数def is_prime(num): for i in range(2, int(sqrt(num)) + 1): if num % i == 0: return False return True# 初始化质数集合primelist = [num for num in range(2, theUpNumber) if is_prime(num) is True]print(sum(primelist))
阅读全文
0 0
- ProjectEuler-Problem10-Summation of primes
- projecteuler---->problem=10----Summation of primes
- summation of four primes
- Problem 10:Summation of primes
- 110705 Summation of Four Primes
- Summation of Four Primes - PC110705
- Problem 10:Summation of primes
- PE 10 Summation of primes
- 10168 Summation of Four Primes
- Problem 10 Summation of primes
- uva 10168 summation of four primes
- Uva 10168 Summation of Four Primes 素数
- 【Project Euler】【Problem 10】Summation of primes
- (Problem 10)Summation of primes
- project euler problem 10:Summation of primes
- UVA-10168 Summation of Four Primes
- UVa 10168 - Summation of Four Primes
- Summation of Four Primes(歌德巴赫猜想)
- UOJ #5 [NOI2014 D2T1] 动物园
- 136. Single Number(C++)
- ZOJ 2671 (线段树+矩阵乘法)
- rem.js
- .NET线程同步之Volatile构造
- ProjectEuler-Problem10-Summation of primes
- Android 屏幕适配
- 复现一个DataGridView仅显示一行且不显式抛异常的Bug
- Linux_7_swap_配置
- hdu 1814 Peaceful Commission 2-SAT
- application/json 四种常见的 POST 提交数据方式
- Linux Crontab 定时任务 命令详解
- 寻找最低数
- UESTC 1690 这是一道比CCCC简单题难的简单题||HiHoCoder #1048 : 状态压缩·二