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 11, 2026 06:36Victor MerckléVictor MerckléScore: 7,062Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 06:476,95713,392,6046,123,00002,113,536
2Jun 11, 2026 06:476,97613,369,5046,139,00002,113,536
3Jun 11, 2026 06:477,03513,488,7566,191,00002,113,536
4Jun 11, 2026 06:477,04813,363,9576,203,00002,113,536
5Jun 11, 2026 06:477,06213,686,2166,215,00002,113,536
6Jun 11, 2026 06:477,06313,403,1716,216,00002,113,536
7Jun 11, 2026 06:477,17813,815,0476,317,00002,113,536
8Jun 11, 2026 06:477,18013,502,3806,319,00002,113,536
9Jun 11, 2026 06:477,18713,974,5996,325,00002,113,536