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 4, 2025 19:30Mikhail ShirokovMikhail ShirokovScore: 115,270Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 4, 2025 19:30114,613126,621,03699,861,000998,0002,277,376
2Nov 4, 2025 19:30114,863127,287,56099,078,0002,001,0002,277,376
3Nov 4, 2025 19:30115,063124,401,00599,250,0002,005,0002,277,376
4Nov 4, 2025 19:30115,160129,541,246100,338,0001,003,0002,265,088
5Nov 4, 2025 19:30115,270126,981,624100,434,0001,004,0002,269,184
6Nov 4, 2025 19:30115,300124,114,176100,460,0001,004,0002,269,184
7Nov 4, 2025 19:30115,359124,937,832100,511,0001,005,0002,277,376
8Nov 4, 2025 19:30115,399127,032,754100,546,0001,005,0002,379,776
9Nov 4, 2025 19:30115,531130,640,900101,667,00002,269,184