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 02:47izotoffizotoffScore: 117,017Success
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 02:47116,876131,392,505102,851,00002,326,528
2Nov 6, 2025 02:47116,938133,241,882101,906,000999,0002,326,528
3Nov 6, 2025 02:47116,984133,471,864101,947,000999,0002,437,120
4Nov 6, 2025 02:47117,009134,282,177101,969,000999,0002,326,528
5Nov 6, 2025 02:47117,017130,658,554100,976,0001,999,0002,441,216
6Nov 6, 2025 02:47117,127133,502,498102,072,0001,000,0002,437,120
7Nov 6, 2025 02:47117,155126,222,808101,095,0002,001,0002,326,528
8Nov 6, 2025 02:47117,518125,971,293102,412,0001,004,0002,326,528
9Nov 6, 2025 02:47117,963131,770,226101,811,0001,996,0002,326,528