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 13:23Yuriy LyfenkoYuriy LyfenkoScore: 46,073Success
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 13:2341,122110,495,27036,187,00402,211,840
2Jun 21, 2021 13:2341,12995,826,84236,193,77002,215,936
3Jun 21, 2021 13:2341,15392,188,38736,215,05202,224,128
4Jun 21, 2021 13:2345,93262,469,80339,410,0001,010,0002,269,184
5Jun 21, 2021 13:2345,94863,417,60840,434,00002,269,184
6Jun 21, 2021 13:2346,06563,332,23739,524,0001,013,0002,375,680
7Jun 21, 2021 13:2346,07371,805,31439,531,0001,013,0002,269,184
8Jun 21, 2021 13:2346,08063,899,42639,537,0001,013,0002,379,776
9Jun 21, 2021 13:2346,12071,161,14738,607,0001,979,0002,367,488
10Jun 21, 2021 13:2346,13467,372,98840,598,00002,375,680
11Jun 21, 2021 13:2346,45665,257,77739,884,000997,0002,269,184
12Jun 21, 2021 13:2346,46372,863,60839,890,000997,0002,265,088