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 24, 2026 07:13olliecrowolliecrowScore: 127,315Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 07:14126,867129,415,417108,626,0003,017,0002,457,600stderr
2Apr 24, 2026 07:14126,965129,796,229108,711,0003,019,0002,457,600stderr
3Apr 24, 2026 07:14127,043127,543,557107,806,0003,992,0002,453,504stderr
4Apr 24, 2026 07:14127,219129,129,888107,955,0003,998,0002,457,600stderr
5Apr 24, 2026 07:14127,315128,000,802108,037,0004,001,0002,453,504stderr
6Apr 24, 2026 07:14127,367128,339,122109,081,0003,002,0002,465,792stderr
7Apr 24, 2026 07:14127,378130,202,243108,090,0004,003,0002,461,696stderr
8Apr 24, 2026 07:14127,390125,897,585108,101,0004,003,0002,457,600stderr
9Apr 24, 2026 07:14127,415128,299,353108,122,0004,004,0002,523,136stderr