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 listMar 18, 2026 14:52limanjun99limanjun99Score: 66,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 14:5266,21181,811,76555,253,0003,013,0002,408,448
2Mar 18, 2026 14:5266,34186,215,49657,374,0001,006,0002,404,352
3Mar 18, 2026 14:5266,47378,628,04257,488,0001,008,0002,375,680
4Mar 18, 2026 14:5266,51582,609,07557,524,0001,009,0002,400,256
5Mar 18, 2026 14:5266,55581,437,92157,559,0001,009,0002,404,352
6Mar 18, 2026 14:5266,55883,629,61657,562,0001,009,0002,265,088
7Mar 18, 2026 14:5266,62080,017,29957,616,0001,010,0002,400,256
8Mar 18, 2026 14:5266,68086,637,28556,655,0002,023,0002,396,160
9Mar 18, 2026 14:5266,77288,819,24557,746,0001,013,0002,289,664