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 6, 2026 06:41Victor MerckléVictor MerckléScore: 9,393Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2026 06:449,34815,709,5798,227,00002,113,536
2Jun 6, 2026 06:449,37915,721,1398,254,00002,113,536
3Jun 6, 2026 06:449,38015,758,1628,255,00002,113,536
4Jun 6, 2026 06:449,39215,742,3728,265,00002,113,536
5Jun 6, 2026 06:449,39315,713,9508,266,00002,113,536
6Jun 6, 2026 06:449,41515,716,1968,286,00002,113,536
7Jun 6, 2026 06:449,47115,834,2788,335,00002,113,536
8Jun 6, 2026 06:449,62015,884,1448,466,00002,113,536
9Jun 6, 2026 06:449,76716,043,4528,595,00002,113,536