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 listJul 8, 2021 17:11Yuriy LyfenkoYuriy LyfenkoScore: 38,920Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:1130,450108,979,82126,795,85502,228,224
2Jul 8, 2021 17:1130,48794,404,92526,828,46402,228,224
3Jul 8, 2021 17:1130,59993,934,86926,927,30502,215,936
4Jul 8, 2021 17:1138,78658,656,29532,125,0002,007,0002,379,776
5Jul 8, 2021 17:1138,83565,623,99032,165,0002,010,0002,273,280
6Jul 8, 2021 17:1138,84460,768,82633,178,0001,005,0002,269,184
7Jul 8, 2021 17:1138,92058,263,58434,250,00002,269,184
8Jul 8, 2021 17:1138,94566,671,64633,264,0001,008,0002,269,184
9Jul 8, 2021 17:1138,95756,900,22732,266,0002,016,0002,375,680
10Jul 8, 2021 17:1138,96056,622,81433,277,0001,008,0002,269,184
11Jul 8, 2021 17:1139,03260,921,64133,338,0001,010,0002,269,184
12Jul 8, 2021 17:1139,04462,332,83834,359,00002,375,680