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 04:01Yuriy LyfenkoYuriy LyfenkoScore: 44,285Success
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 04:0141,66199,793,83536,662,09902,228,224
2Jun 27, 2021 04:0141,776114,028,74736,763,29102,224,128
3Jun 27, 2021 04:0141,854108,289,49736,831,28202,224,128
4Jun 27, 2021 04:0144,18167,204,87436,886,0001,993,0002,269,184
5Jun 27, 2021 04:0144,19770,106,99736,899,0001,994,0002,269,184
6Jun 27, 2021 04:0144,21869,174,62537,888,0001,024,0002,265,088
7Jun 27, 2021 04:0144,28567,993,80036,973,0001,998,0002,379,776
8Jun 27, 2021 04:0144,29962,740,87836,984,0001,999,0002,269,184
9Jun 27, 2021 04:0144,35565,526,87737,031,0002,001,0002,269,184
10Jun 27, 2021 04:0144,36870,451,62437,042,0002,002,0002,269,184
11Jun 27, 2021 04:0144,42568,664,54838,092,0001,002,0002,265,088
12Jun 27, 2021 04:0144,60069,021,73437,236,0002,012,0002,269,184