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 5, 2025 17:54izotoffizotoffScore: 19,398,549Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 5, 2025 17:5419,292,95917,014,404,98216,976,805,000999,0002,326,528
2Nov 5, 2025 17:5419,308,28317,019,844,62216,989,290,0001,999,0002,326,528
3Nov 5, 2025 17:5419,313,25917,026,846,49716,993,669,0001,999,0002,326,528
4Nov 5, 2025 17:5419,322,28617,035,298,79617,002,613,000999,0002,326,528
5Nov 5, 2025 17:5419,398,54917,104,638,84517,070,723,00002,330,624
6Nov 5, 2025 17:5419,415,76717,119,459,35617,085,875,00002,326,528
7Nov 5, 2025 17:5419,460,94317,161,228,02017,124,631,000999,0002,326,528
8Nov 5, 2025 17:5419,479,12017,172,099,26217,141,626,00002,433,024
9Nov 5, 2025 17:5419,526,29317,218,091,62917,183,138,00002,326,528