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 14, 2026 22:40olliecrowolliecrowScore: 18,627Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 22:4018,36942,107,37315,155,0001,010,0002,469,888
2Feb 14, 2026 22:4018,47041,934,84516,254,00002,482,176
3Feb 14, 2026 22:4018,55640,444,45716,329,00002,473,984
4Feb 14, 2026 22:4018,62343,577,35116,388,00002,482,176
5Feb 14, 2026 22:4018,62741,349,94116,392,00002,478,080
6Feb 14, 2026 22:4018,63134,653,08216,395,00002,473,984
7Feb 14, 2026 22:4018,65641,978,45016,417,00002,469,888
8Feb 14, 2026 22:4018,66836,177,67416,428,00002,449,408
9Feb 14, 2026 22:4018,67439,094,40115,406,0001,027,0002,482,176