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 26, 2026 22:36Victor MerckléVictor MerckléScore: 5,054Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 22:395,02611,948,9264,423,00002,113,536
2Jun 26, 2026 22:395,04611,943,3484,441,00002,113,536
3Jun 26, 2026 22:395,04712,003,0644,442,00002,113,536
4Jun 26, 2026 22:395,05111,987,4704,445,00002,113,536
5Jun 26, 2026 22:395,05411,953,7744,448,00002,113,536
6Jun 26, 2026 22:395,15011,978,0714,532,00002,113,536
7Jun 26, 2026 22:395,17211,995,0154,552,00002,113,536
8Jun 26, 2026 22:395,19612,044,0994,573,00002,113,536
9Jun 26, 2026 22:395,27912,496,1494,646,00002,113,536