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 30, 2026 00:41Victor MerckléVictor MerckléScore: 5,820Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 00:445,70912,832,3985,024,00002,117,632stderr
2Jun 30, 2026 00:445,71212,785,9165,027,00002,117,632stderr
3Jun 30, 2026 00:445,73012,834,6245,043,00002,117,632stderr
4Jun 30, 2026 00:445,79812,767,6085,103,00002,117,632stderr
5Jun 30, 2026 00:445,82012,800,2975,122,00002,117,632stderr
6Jun 30, 2026 00:445,82913,092,7965,130,00002,117,632stderr
7Jun 30, 2026 00:445,84712,846,9195,146,00002,117,632stderr
8Jun 30, 2026 00:446,04013,035,8285,316,00002,117,632stderr
9Jun 30, 2026 00:446,04512,993,8605,320,00002,117,632stderr