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 21, 2026 13:31Victor MerckléVictor MerckléScore: 8,239Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:348,11714,669,1897,143,00002,117,632stderr
2Jun 21, 2026 13:348,17214,689,1367,192,00002,117,632stderr
3Jun 21, 2026 13:348,18514,721,0827,203,00002,117,632stderr
4Jun 21, 2026 13:348,23614,770,5757,248,00002,117,632stderr
5Jun 21, 2026 13:348,23915,004,4337,251,00002,117,632stderr
6Jun 21, 2026 13:348,24414,725,8607,255,00002,117,632stderr
7Jun 21, 2026 13:348,32714,819,0477,328,00002,117,632stderr
8Jun 21, 2026 13:348,33915,137,1997,339,00002,117,632stderr
9Jun 21, 2026 13:348,96715,732,7016,690,0001,201,0002,117,632stderr