摘要:
Summation of primes Problem 10 Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. pack 阅读全文
posted @ 2018-12-09 20:27
喜欢沧月的二福君
阅读(183)
评论(0)
推荐(0)
摘要:
结果:31875000 阅读全文
posted @ 2018-12-09 20:25
喜欢沧月的二福君
阅读(217)
评论(0)
推荐(0)
摘要:
结果:104743 阅读全文
posted @ 2018-12-09 20:24
喜欢沧月的二福君
阅读(162)
评论(0)
推荐(0)
摘要:
package main import "fmt" func main() { sum := 0 sum2 := 0 for i := 1; i <= 100; i++ { sum += i sum2 += i * i } fmt.Println(sum*sum - sum2) } 结果:25164 阅读全文
posted @ 2018-12-09 20:22
喜欢沧月的二福君
阅读(130)
评论(0)
推荐(0)
摘要:
结果:232792560 阅读全文
posted @ 2018-12-09 20:15
喜欢沧月的二福君
阅读(151)
评论(0)
推荐(0)
摘要:
结果:76576500 阅读全文
posted @ 2018-12-09 20:10
喜欢沧月的二福君
阅读(301)
评论(0)
推荐(0)

浙公网安备 33010602011771号