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 listMay 17, 2026 19:21Victor MerckléVictor MerckléScore: 9,671Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 19:249,65117,258,8148,493,00002,113,536
2May 17, 2026 19:249,65119,166,8418,493,00002,113,536
3May 17, 2026 19:249,66416,636,8738,505,00002,113,536
4May 17, 2026 19:249,67016,705,0508,510,00002,113,536
5May 17, 2026 19:249,67118,539,3498,511,00002,113,536
6May 17, 2026 19:249,67316,853,3368,513,00002,113,536
7May 17, 2026 19:249,67917,074,1048,518,00002,113,536
8May 17, 2026 19:249,68518,970,3148,523,00002,113,536
9May 17, 2026 19:249,69817,227,8508,535,00002,113,536