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:47Yuriy LyfenkoYuriy LyfenkoScore: 38,807Success
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:4730,42691,287,19526,774,80702,215,936
2Jul 30, 2022 13:4730,47498,367,06026,817,19202,224,128
3Jul 30, 2022 13:4730,55986,318,47726,892,06302,240,512
4Jul 30, 2022 13:4738,55660,413,58731,934,0001,995,0002,375,680
5Jul 30, 2022 13:4738,71666,891,13932,066,0002,004,0002,375,680
6Jul 30, 2022 13:4738,80262,582,64933,142,0001,004,0002,379,776
7Jul 30, 2022 13:4738,80763,514,28732,142,0002,008,0002,269,184
8Jul 30, 2022 13:4738,88862,228,12533,215,0001,006,0002,383,872
9Jul 30, 2022 13:4738,96462,236,59934,288,00002,269,184
10Jul 30, 2022 13:4738,98066,247,61432,285,0002,017,0002,269,184
11Jul 30, 2022 13:4739,05361,717,33633,357,0001,010,0002,269,184
12Jul 30, 2022 13:4739,12261,701,97634,427,00002,269,184