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 listApr 23, 2026 09:42Victor MerckléVictor MerckléScore: 15,409Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 09:4215,32329,396,18212,448,0001,037,0002,383,872
2Apr 23, 2026 09:4215,32530,409,60812,449,0001,037,0002,383,872
3Apr 23, 2026 09:4215,34031,881,26012,462,0001,038,0002,392,064
4Apr 23, 2026 09:4215,38534,667,9289,373,0004,166,0002,379,776
5Apr 23, 2026 09:4215,40930,202,38712,517,0001,043,0002,387,968
6Apr 23, 2026 09:4215,42232,151,17712,528,0001,044,0002,383,872
7Apr 23, 2026 09:4215,42630,419,07011,487,0002,088,0002,387,968
8Apr 23, 2026 09:4215,43133,866,67912,536,0001,044,0002,379,776
9Apr 23, 2026 09:4215,46328,009,88512,562,0001,046,0002,445,312