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 listNov 6, 2025 03:00izotoffizotoffScore: 116,895Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2025 03:00116,514128,132,709101,527,0001,005,0002,428,928
2Nov 6, 2025 03:00116,680129,146,200101,672,0001,006,0002,326,528
3Nov 6, 2025 03:00116,730128,676,747101,715,0001,007,0002,433,024
4Nov 6, 2025 03:00116,858131,239,578102,835,00002,326,528
5Nov 6, 2025 03:00116,895131,348,280100,871,0001,997,0002,433,024
6Nov 6, 2025 03:00117,028126,830,028101,986,000999,0002,433,024
7Nov 6, 2025 03:00117,048126,826,009101,002,0002,000,0002,445,312
8Nov 6, 2025 03:00117,206128,474,944102,140,0001,001,0002,326,528
9Nov 6, 2025 03:00117,317125,926,780102,237,0001,002,0002,326,528