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 11:20Nanored4498Nanored4498Score: 117,605Success
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 11:21117,330120,986,904102,249,0001,002,0002,367,488
2Apr 23, 2026 11:21117,570126,880,420102,458,0001,004,0002,367,488
3Apr 23, 2026 11:21117,578117,948,833103,469,00002,367,488
4Apr 23, 2026 11:21117,592116,908,918102,477,0001,004,0002,289,664
5Apr 23, 2026 11:21117,605118,580,537102,489,0001,004,0002,437,120
6Apr 23, 2026 11:21117,719117,260,481102,588,0001,005,0002,367,488
7Apr 23, 2026 11:21117,765119,565,767102,628,0001,006,0002,363,392
8Apr 23, 2026 11:21117,822119,602,789102,678,0001,006,0002,363,392
9Apr 23, 2026 11:21118,120120,936,885101,948,0001,998,0002,375,680