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 11:07olliecrowolliecrowScore: 19,636Success
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 11:1019,39625,022,89915,061,0002,008,0002,359,296
2Apr 29, 2026 11:1019,56236,224,80216,203,0001,012,0002,482,176
3Apr 29, 2026 11:1019,59025,270,86814,198,0003,042,0002,379,776
4Apr 29, 2026 11:1019,60225,318,39415,221,0002,029,0002,482,176
5Apr 29, 2026 11:1019,63625,309,39214,231,0003,049,0002,375,680
6Apr 29, 2026 11:1019,83725,423,30215,404,0002,053,0002,375,680
7Apr 29, 2026 11:1019,88725,445,31816,472,0001,029,0002,379,776
8Apr 29, 2026 11:1020,50325,232,39216,039,0002,004,0002,379,776
9Apr 29, 2026 11:1020,59525,160,02015,104,0003,020,0002,478,080