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 listFeb 4, 2026 16:14vahookvahookScore: 3,678Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 16:143,58421,348,3441,051,0002,103,0002,490,368
2Feb 4, 2026 16:143,58619,547,7801,052,0002,104,0002,498,560
3Feb 4, 2026 16:143,63818,474,5412,134,0001,067,0002,277,376
4Feb 4, 2026 16:143,67217,781,5501,077,0002,154,0002,502,656
5Feb 4, 2026 16:143,67824,567,2032,158,0001,079,0002,494,464
6Feb 4, 2026 16:143,69920,386,9152,170,0001,085,0002,490,368
7Feb 4, 2026 16:143,70317,669,6452,173,0001,086,0002,498,560
8Feb 4, 2026 16:143,71018,507,1132,177,0001,088,0002,539,520
9Feb 4, 2026 16:143,73323,553,9582,190,0001,095,0002,498,560