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 28, 2021 03:33Yuriy LyfenkoYuriy LyfenkoScore: 36,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 03:3331,53892,752,23227,753,86802,228,224
2Jun 28, 2021 03:3331,64499,589,45227,846,47002,215,936
3Jun 28, 2021 03:3331,69092,389,89727,887,17202,220,032
4Jun 28, 2021 03:3336,46358,855,37631,085,0001,002,0002,269,184
5Jun 28, 2021 03:3336,64955,669,68331,244,0001,007,0002,379,776
6Jun 28, 2021 03:3336,71054,294,35232,305,00002,383,872
7Jun 28, 2021 03:3336,73452,988,81231,316,0001,010,0002,506,752
8Jun 28, 2021 03:3336,74853,967,39130,317,0002,021,0002,269,184
9Jun 28, 2021 03:3336,81359,070,86031,383,0001,012,0002,367,488
10Jun 28, 2021 03:3336,93454,977,65231,487,0001,015,0002,371,584
11Jun 28, 2021 03:3336,94963,622,30232,515,00002,269,184
12Jun 28, 2021 03:3336,96956,144,21931,517,0001,016,0002,269,184