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 20, 2026 00:40olliecrowolliecrowScore: 15,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 00:4015,57642,535,53813,707,00002,265,088
2Mar 20, 2026 00:4015,64029,686,42812,705,0001,058,0002,293,760
3Mar 20, 2026 00:4015,64328,238,43513,766,00002,523,136
4Mar 20, 2026 00:4015,65529,294,40312,717,0001,059,0002,482,176
5Mar 20, 2026 00:4015,66043,679,45613,781,00002,265,088
6Mar 20, 2026 00:4015,66139,412,78313,782,00002,482,176
7Mar 20, 2026 00:4015,79738,062,79413,901,00002,498,560
8Mar 20, 2026 00:4015,81432,725,68912,922,000994,0002,486,272
9Mar 20, 2026 00:4015,83539,946,60613,935,00002,256,896