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 18:17Victor 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
1Jun 29, 2026 18:20014,122,3863,617,000045,056No answer to stdout. Died or killed?
2Jun 29, 2026 18:205,63115,244,4783,845,0001,111,0002,142,208
3Jun 29, 2026 18:205,65515,479,0553,776,0001,201,0002,142,208
4Jun 29, 2026 18:205,65715,489,9223,616,0001,363,0002,142,208
5Jun 29, 2026 18:205,67315,474,9063,795,0001,198,0002,142,208
6Jun 29, 2026 18:205,68015,498,9993,781,0001,218,0002,142,208
7Jun 29, 2026 18:205,68915,539,6963,854,0001,153,0002,142,208
8Jun 29, 2026 18:205,88515,518,7613,826,0001,353,0002,142,208