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 23, 2026 07:07Victor MerckléVictor MerckléScore: 6,145Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 07:106,09712,922,7145,366,00002,117,632stderr
2Jun 23, 2026 07:106,10412,978,0135,372,00002,117,632stderr
3Jun 23, 2026 07:106,12712,936,4405,392,00002,117,632stderr
4Jun 23, 2026 07:106,14412,988,2235,407,00002,117,632stderr
5Jun 23, 2026 07:106,14513,061,7145,408,00002,117,632stderr
6Jun 23, 2026 07:106,18912,965,0945,447,00002,117,632stderr
7Jun 23, 2026 07:106,21713,391,9725,471,00002,117,632stderr
8Jun 23, 2026 07:106,22113,004,0735,475,00002,117,632stderr
9Jun 23, 2026 07:106,58813,358,6165,798,00002,117,632stderr