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 29, 2026 21:14Andrew EpsteinAndrew EpsteinScore: 224,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 21:16224,127206,288,029196,228,0001,004,0002,121,728stderr
2Sep 29, 2026 21:16224,129206,738,452196,231,0001,003,0002,121,728stderr
3Sep 29, 2026 21:16224,235206,261,077196,167,0001,160,0002,121,728stderr
4Sep 29, 2026 21:16224,314206,678,104196,395,0001,002,0002,121,728stderr
5Sep 29, 2026 21:16224,529207,148,614196,417,0001,169,0002,121,728stderr
6Sep 29, 2026 21:16224,663206,573,424196,518,0001,186,0002,121,728stderr
7Sep 29, 2026 21:16224,821206,699,601196,672,0001,171,0002,121,728stderr
8Sep 29, 2026 21:16225,186207,668,324197,156,0001,008,0002,121,728stderr
9Sep 29, 2026 21:16225,456207,908,167197,220,0001,182,0002,121,728stderr