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 listApr 26, 2026 20:08Pavel SkripkinPavel SkripkinScore: 54,343Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 20:1153,77262,855,88846,314,0001,006,0002,416,640
2Apr 26, 2026 20:1153,83964,841,98346,371,0001,008,0002,424,832
3Apr 26, 2026 20:1153,93065,617,69546,450,0001,009,0002,433,024
4Apr 26, 2026 20:1153,96166,622,13846,476,0001,010,0002,428,928
5Apr 26, 2026 20:1154,34359,911,20346,826,000996,0002,428,928
6Apr 26, 2026 20:1154,38263,884,99745,863,0001,994,0002,433,024
7Apr 26, 2026 20:1154,42961,874,05345,903,0001,995,0002,437,120
8Apr 26, 2026 20:1154,44463,202,93045,915,0001,996,0002,424,832
9Apr 26, 2026 20:1154,62866,542,31446,070,0002,003,0002,424,832