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 listAug 19, 2026 15:12Victor 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
1Aug 19, 2026 15:14012,144,3433,430,00002,117,632expected "51027949623106 ", got "51025802139477 "stderr
2Aug 19, 2026 15:143,89512,272,4233,428,00002,117,632stderr
3Aug 19, 2026 15:143,90111,606,7703,433,00002,117,632stderr