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 29, 2026 12:55Victor MerckléVictor MerckléScore: 5,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 12:575,10912,039,6394,496,00002,113,536
2Jun 29, 2026 12:575,12712,278,5944,512,00002,113,536
3Jun 29, 2026 12:575,16712,475,1774,547,00002,113,536
4Jun 29, 2026 12:575,17812,465,8214,557,00002,113,536
5Jun 29, 2026 12:575,24812,581,8514,619,00002,113,536
6Jun 29, 2026 12:575,28812,385,9654,654,00002,113,536
7Jun 29, 2026 12:575,32712,433,5104,688,00002,113,536
8Jun 29, 2026 12:575,37012,753,8824,726,00002,113,536
9Jun 29, 2026 12:575,47512,801,1884,818,00002,113,536