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 30, 2022 13:44Yuriy LyfenkoYuriy LyfenkoScore: 38,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4430,45595,543,57226,800,64402,224,128
2Jul 30, 2022 13:4430,57688,769,35226,906,84602,220,032
3Jul 30, 2022 13:4430,68497,024,14227,001,95302,215,936
4Jul 30, 2022 13:4438,76363,514,19632,105,0002,006,0002,269,184
5Jul 30, 2022 13:4438,77057,334,86233,115,0001,003,0002,269,184
6Jul 30, 2022 13:4438,81058,473,04333,149,0001,004,0002,375,680
7Jul 30, 2022 13:4438,83459,870,90333,169,0001,005,0002,375,680
8Jul 30, 2022 13:4438,88157,213,65732,203,0002,012,0002,269,184
9Jul 30, 2022 13:4438,98654,837,42433,299,0001,009,0002,490,368
10Jul 30, 2022 13:4439,06964,531,41033,370,0001,011,0002,269,184
11Jul 30, 2022 13:4439,09758,005,16633,394,0001,011,0002,269,184
12Jul 30, 2022 13:4439,17060,289,62433,457,0001,013,0002,269,184