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 29, 2026 04:51olliecrowolliecrowScore: 11,954Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 04:5111,91532,981,1809,438,0001,048,0002,330,624
2Apr 29, 2026 04:5111,91733,041,4339,439,0001,048,0002,342,912
3Apr 29, 2026 04:5111,91829,637,7289,440,0001,048,0002,338,816
4Apr 29, 2026 04:5111,93825,792,4019,456,0001,050,0002,338,816
5Apr 29, 2026 04:5111,95423,644,5359,468,0001,052,0002,326,528
6Apr 29, 2026 04:5111,96830,060,9409,479,0001,053,0002,330,624
7Apr 29, 2026 04:5112,08028,206,9059,568,0001,063,0002,428,928
8Apr 29, 2026 04:5112,27233,030,5258,837,0001,963,0002,330,624
9Apr 29, 2026 04:5112,28526,788,1149,730,0001,081,0002,330,624