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 30, 2026 20:33olliecrowolliecrowScore: 12,400Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 20:3412,29823,908,6749,741,0001,082,0002,453,504
2Apr 30, 2026 20:3412,36527,001,1048,706,0002,176,0002,461,696
3Apr 30, 2026 20:3412,36929,559,9228,906,0001,979,0002,412,544
4Apr 30, 2026 20:3412,38831,868,8899,812,0001,090,0002,453,504
5Apr 30, 2026 20:3412,40028,917,2787,936,0002,976,0002,453,504
6Apr 30, 2026 20:3412,40927,739,4438,935,0001,985,0002,457,600
7Apr 30, 2026 20:3412,41728,672,1787,947,0002,980,0002,424,832
8Apr 30, 2026 20:3412,42828,729,5298,949,0001,988,0002,453,504
9Apr 30, 2026 20:3412,76731,434,04011,235,00002,519,040