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 14:28Mikhail ShirokovMikhail ShirokovScore: 122,658Success
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 14:28121,988132,824,161106,346,0001,003,0002,273,280
2Nov 4, 2025 14:28122,305141,933,347106,623,0001,005,0002,269,184
3Nov 4, 2025 14:28122,351134,029,129106,663,0001,006,0002,265,088
4Nov 4, 2025 14:28122,435130,576,834105,748,0001,995,0002,265,088
5Nov 4, 2025 14:28122,658130,449,681105,941,0001,998,0002,260,992
6Nov 4, 2025 14:28122,682127,758,196105,961,0001,999,0002,519,040
7Nov 4, 2025 14:28122,745133,105,649106,016,0002,000,0002,265,088
8Nov 4, 2025 14:28122,775130,412,478107,042,0001,000,0002,269,184
9Nov 4, 2025 14:28122,803135,339,154107,067,0001,000,0002,277,376