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 9, 2026 19:18Victor MerckléVictor MerckléScore: 9,119Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 19:249,07016,720,3406,530,0001,452,0002,187,264
2Jun 9, 2026 19:249,10216,656,5836,823,0001,187,0002,183,168
3Jun 9, 2026 19:249,10416,713,0316,936,0001,076,0002,142,208
4Jun 9, 2026 19:249,10716,745,3656,939,0001,076,0002,142,208
5Jun 9, 2026 19:249,11916,782,4966,918,0001,107,0002,142,208
6Jun 9, 2026 19:249,12816,785,8156,581,0001,452,0002,187,264
7Jun 9, 2026 19:249,17116,854,4136,966,0001,105,0002,142,208
8Jun 9, 2026 19:249,22016,891,5396,644,0001,470,0002,142,208
9Jun 9, 2026 19:249,37316,902,4307,027,0001,222,0002,138,112