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:34Victor MerckléVictor MerckléScore: 8,922Success
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:408,87016,583,3406,427,0001,379,0002,134,016
2Jun 9, 2026 19:408,89216,579,6366,425,0001,400,0002,134,016
3Jun 9, 2026 19:408,90916,583,4516,576,0001,264,0002,134,016
4Jun 9, 2026 19:408,91116,473,3296,461,0001,381,0002,129,920
5Jun 9, 2026 19:408,92216,537,4456,448,0001,404,0002,134,016
6Jun 9, 2026 19:408,92216,599,6326,574,0001,278,0002,134,016
7Jun 9, 2026 19:408,97916,566,4796,540,0001,362,0002,179,072
8Jun 9, 2026 19:409,02516,733,7286,575,0001,367,0002,179,072
9Jun 9, 2026 19:409,02816,663,7456,557,0001,388,0002,134,016