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:31Mikhail ShirokovMikhail ShirokovScore: 120,775Success
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:32120,440127,349,994104,988,000999,0002,277,376
2Nov 4, 2025 19:31120,608132,297,872105,134,0001,001,0002,277,376
3Nov 4, 2025 19:32120,707125,849,095105,220,0001,002,0002,277,376
4Nov 4, 2025 19:32120,775129,826,163105,280,0001,002,0002,269,184
5Nov 4, 2025 19:31121,024132,445,274105,497,0001,004,0002,277,376
6Nov 4, 2025 19:31121,364136,357,120104,804,0001,996,0002,363,392