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 listSep 10, 2026 15:37Andrew EpsteinAndrew EpsteinScore: 7,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 15:437,45016,428,7065,264,0001,292,0002,121,728stderr
2Sep 10, 2026 15:437,46016,454,6905,263,0001,302,0002,121,728stderr
3Sep 10, 2026 15:437,48216,566,5085,295,0001,290,0002,121,728stderr
4Sep 10, 2026 15:437,49216,510,8105,306,0001,287,0002,121,728stderr
5Sep 10, 2026 15:437,49816,497,0685,301,0001,298,0002,121,728stderr
6Sep 10, 2026 15:437,50116,605,7115,302,0001,299,0002,121,728stderr
7Sep 10, 2026 15:437,50516,512,3865,315,0001,290,0002,121,728stderr
8Sep 10, 2026 15:437,52716,495,5655,319,0001,305,0002,121,728stderr
9Sep 10, 2026 15:437,61916,652,6495,540,0001,165,0002,121,728stderr