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 27, 2026 06:34Victor MerckléVictor MerckléScore: 6,328Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 06:386,12714,810,4034,230,0001,162,0002,142,208
2Jun 27, 2026 06:386,18015,316,9764,107,0001,332,0002,142,208
3Jun 27, 2026 06:386,23615,074,6234,117,0001,371,0002,142,208
4Jun 27, 2026 06:386,27315,356,9794,098,0001,423,0002,142,208
5Jun 27, 2026 06:386,32814,873,3524,141,0001,428,0002,142,208
6Jun 27, 2026 06:386,36115,347,0434,310,0001,288,0002,142,208
7Jun 27, 2026 06:386,36515,164,8244,390,0001,212,0002,142,208
8Jun 27, 2026 06:386,42115,219,2754,413,0001,238,0002,142,208
9Jun 27, 2026 06:386,42215,558,2534,287,0001,365,0002,142,208