Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 27, 2021 22:30Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 22:3000000Error: expected "51334796616476 ", got "51334796616339 "
2Jun 27, 2021 22:3031,37796,854,72227,611,47702,215,936
3Jun 27, 2021 22:3031,47991,126,81127,701,62402,224,128
4Jun 27, 2021 22:3031,484114,466,65927,705,94902,232,320
5Jun 27, 2021 22:3031,499109,911,76527,719,42602,220,032
6Jun 27, 2021 22:3031,511102,510,55227,729,70702,211,840
7Jun 27, 2021 22:3031,51583,342,69927,733,01502,220,032
8Jun 27, 2021 22:3036,55055,503,68430,154,0002,010,0002,375,680
9Jun 27, 2021 22:3036,68654,846,21332,284,00002,269,184
10Jun 27, 2021 22:3036,69758,571,99332,293,00002,269,184
11Jun 27, 2021 22:3036,71149,815,28232,306,00002,379,776
12Jun 27, 2021 22:3036,74854,888,19831,328,0001,010,0002,269,184
13Jun 27, 2021 22:3036,74961,293,13332,339,00002,269,184
14Jun 27, 2021 22:3036,75756,215,89831,336,0001,010,0002,383,872
15Jun 27, 2021 22:3036,81355,706,05131,383,0001,012,0002,269,184
16Jun 27, 2021 22:3036,85154,067,65531,416,0001,013,0002,269,184