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 listJul 3, 2026 03:45Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 03:47016,552,9438,770,00002,117,632expected "51054866717961 ", got "51055249022122 "stderr
2Jul 3, 2026 03:4710,01416,939,4658,813,00002,117,632stderr
3Jul 3, 2026 03:4710,02116,647,3988,819,00002,117,632stderr
4Jul 3, 2026 03:4710,03916,638,6998,835,00002,117,632stderr
5Jul 3, 2026 03:4710,07316,738,1098,865,00002,117,632stderr
6Jul 3, 2026 03:4710,18516,738,2418,963,00002,117,632stderr
7Jul 3, 2026 03:4710,37817,284,9649,133,00002,117,632stderr
8Jul 3, 2026 03:4710,40217,240,5739,154,00002,117,632stderr
9Jul 3, 2026 03:4710,59517,462,8989,324,00002,117,632stderr