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:52Mikhail ShirokovMikhail ShirokovScore: 117,283Success
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:52116,995126,004,178100,957,0001,999,0002,523,136
2Nov 4, 2025 14:52117,082127,600,324102,032,0001,000,0002,260,992
3Nov 4, 2025 14:52117,101130,541,832101,049,0002,000,0002,277,376
4Nov 4, 2025 14:52117,130125,963,709101,073,0002,001,0002,519,040
5Nov 4, 2025 14:52117,283125,962,044101,205,0002,004,0002,277,376
6Nov 4, 2025 14:52117,317132,071,537102,237,0001,002,0002,260,992
7Nov 4, 2025 14:52117,341124,654,904102,258,0001,002,0002,523,136
8Nov 4, 2025 14:52117,453128,904,289102,356,0001,003,0002,277,376
9Nov 4, 2025 14:52117,484126,572,628103,386,00002,277,376