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 25, 2021 16:51Yuriy LyfenkoYuriy LyfenkoScore: 56,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 25, 2021 16:5155,802106,642,36849,106,05702,220,032
2Jun 25, 2021 16:5155,894118,279,84049,186,40502,215,936
3Jun 25, 2021 16:5156,071117,039,34649,342,48802,228,224
4Jun 25, 2021 16:5156,68882,504,99748,888,000997,0002,269,184
5Jun 25, 2021 16:5156,69374,285,51347,895,0001,995,0002,269,184
6Jun 25, 2021 16:5156,69776,438,27748,896,000997,0002,371,584
7Jun 25, 2021 16:5156,77081,665,86648,959,000999,0002,269,184
8Jun 25, 2021 16:5156,80382,725,97348,988,000999,0002,269,184
9Jun 25, 2021 16:5156,82375,222,90249,004,0001,000,0002,383,872
10Jun 25, 2021 16:5156,88475,683,12548,056,0002,002,0002,375,680
11Jun 25, 2021 16:5156,92380,790,08348,089,0002,003,0002,269,184
12Jun 25, 2021 16:5156,94177,883,36648,104,0002,004,0002,269,184