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 listMar 3, 2025 02:26wainCGPwainCGPScore: 25,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 02:2625,13255,939,44720,106,0002,010,0002,273,280
2Mar 3, 2025 02:2625,13450,880,74420,108,0002,010,0002,289,664
3Mar 3, 2025 02:2625,13844,969,75421,116,0001,005,0002,367,488
4Mar 3, 2025 02:2625,15643,300,96420,125,0002,012,0002,289,664
5Mar 3, 2025 02:2625,16044,909,97420,129,0002,012,0002,273,280
6Mar 3, 2025 02:2625,25045,449,11720,200,0002,020,0002,289,664
7Mar 3, 2025 02:2625,29851,342,30121,251,0001,011,0002,289,664
8Mar 3, 2025 02:2625,30546,533,04720,244,0002,024,0002,289,664
9Mar 3, 2025 02:2625,35049,804,83920,280,0002,028,0002,289,664