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 21, 2021 18:19Yuriy LyfenkoYuriy LyfenkoScore: 44,657Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:1939,20094,324,01134,495,89002,224,128
2Jun 21, 2021 18:1939,277107,151,70234,563,71602,215,936
3Jun 21, 2021 18:1939,50997,702,72534,767,98702,215,936
4Jun 21, 2021 18:1944,41870,194,92737,084,0002,004,0002,269,184
5Jun 21, 2021 18:1944,61166,226,83339,258,00002,269,184
6Jun 21, 2021 18:1944,62063,696,52539,266,00002,269,184
7Jun 21, 2021 18:1944,65763,847,66138,291,0001,007,0002,371,584
8Jun 21, 2021 18:1944,68959,401,12839,326,00002,379,776
9Jun 21, 2021 18:1944,72460,445,34939,357,00002,371,584
10Jun 21, 2021 18:1944,78860,938,63538,403,0001,010,0002,482,176
11Jun 21, 2021 18:1944,81670,075,77838,427,0001,011,0002,269,184
12Jun 21, 2021 18:1944,97362,882,04038,562,0001,014,0002,363,392