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 listApr 21, 2026 19:43Victor MerckléVictor MerckléScore: 23,852Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 19:4323,43833,635,89419,595,0001,031,0002,387,968
2Apr 21, 2026 19:4323,49736,983,20519,645,0001,033,0002,396,160
3Apr 21, 2026 19:4323,50734,181,63419,653,0001,034,0002,473,984
4Apr 21, 2026 19:4323,61437,300,62919,742,0001,039,0002,318,336
5Apr 21, 2026 19:4323,85237,095,68717,992,0002,998,0002,379,776
6Apr 21, 2026 19:4324,13936,914,75820,232,0001,011,0002,387,968
7Apr 21, 2026 19:4324,30138,627,34520,367,0001,018,0002,383,872
8Apr 21, 2026 19:4324,31342,347,84020,378,0001,018,0002,383,872
9Apr 21, 2026 19:4324,38537,312,99220,438,0001,021,0002,392,064