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 listJun 26, 2026 18:41Victor MerckléVictor MerckléScore: 5,198Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 18:445,11512,000,8734,502,00002,113,536
2Jun 26, 2026 18:445,14312,073,1084,526,00002,113,536
3Jun 26, 2026 18:445,17112,052,5904,551,00002,113,536
4Jun 26, 2026 18:445,19211,995,8244,569,00002,113,536
5Jun 26, 2026 18:445,19812,075,8774,575,00002,113,536
6Jun 26, 2026 18:445,21012,030,3014,585,00002,113,536
7Jun 26, 2026 18:445,23412,110,6244,606,00002,113,536
8Jun 26, 2026 18:445,26912,497,9984,637,00002,113,536
9Jun 26, 2026 18:445,43412,187,8234,782,00002,113,536