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 listSep 2, 2026 12:09Victor MerckléVictor MerckléScore: 3,161Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 12:123,05310,908,8812,687,00002,117,632stderr
2Sep 2, 2026 12:123,06810,912,9242,700,00002,117,632stderr
3Sep 2, 2026 12:123,15111,192,1042,773,00002,117,632stderr
4Sep 2, 2026 12:123,15511,621,7172,777,00002,117,632stderr
5Sep 2, 2026 12:123,16111,635,1772,782,00002,117,632stderr
6Sep 2, 2026 12:123,16410,954,6642,785,00002,117,632stderr
7Sep 2, 2026 12:123,17710,916,9152,796,00002,117,632stderr
8Sep 2, 2026 12:123,17911,522,0572,798,00002,117,632stderr
9Sep 2, 2026 12:123,18710,994,3372,805,00002,117,632stderr