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 listJan 11, 2025 13:59Alex KentAlex KentScore: 82,343Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 11, 2025 13:5982,04494,835,52870,194,0002,005,0002,289,664
2Jan 11, 2025 13:5982,139100,887,65770,275,0002,007,0002,269,184
3Jan 11, 2025 13:5982,26393,752,43471,386,0001,005,0002,273,280
4Jan 11, 2025 13:5982,285103,581,01971,406,0001,005,0002,269,184
5Jan 11, 2025 13:5982,343105,642,80871,456,0001,006,0002,265,088
6Jan 11, 2025 13:5982,37794,432,30072,492,00002,265,088
7Jan 11, 2025 13:5982,46496,577,49272,568,00002,269,184
8Jan 11, 2025 13:5982,48998,566,07971,582,0001,008,0002,277,376
9Jan 11, 2025 13:5982,63698,461,76371,710,0001,010,0002,289,664