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 listJun 29, 2026 17:07Victor MerckléVictor MerckléScore: 4,737Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 17:104,61111,806,5104,058,00002,113,536
2Jun 29, 2026 17:104,62011,806,2384,066,00002,113,536
3Jun 29, 2026 17:104,63011,798,3554,075,00002,113,536
4Jun 29, 2026 17:104,63211,823,2664,077,00002,113,536
5Jun 29, 2026 17:104,73712,278,7424,169,00002,113,536
6Jun 29, 2026 17:104,75011,843,0114,180,00002,113,536
7Jun 29, 2026 17:104,75511,864,1204,185,00002,113,536
8Jun 29, 2026 17:104,76312,132,7704,192,00002,113,536
9Jun 29, 2026 17:104,77711,850,8314,204,00002,113,536