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 14, 2026 17:28limanjun99limanjun99Score: 16,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 17:2816,69431,366,81013,642,0001,049,0002,347,008
2Apr 14, 2026 17:2816,72232,528,30112,613,0002,102,0002,338,816
3Apr 14, 2026 17:2816,72640,473,42113,668,0001,051,0002,437,120
4Apr 14, 2026 17:2816,73650,611,13612,624,0002,104,0002,437,120
5Apr 14, 2026 17:2816,75642,215,04613,692,0001,053,0002,457,600
6Apr 14, 2026 17:2816,76631,585,87712,647,0002,107,0002,293,760
7Apr 14, 2026 17:2817,33830,706,74512,206,0003,051,0002,433,024
8Apr 14, 2026 17:2817,55845,515,85213,391,0002,060,0002,498,560
9Apr 14, 2026 17:2817,56452,318,03812,365,0003,091,0002,338,816