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 listMay 16, 2026 16:01M-RochatM-RochatScore: 69,457Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 16:0469,27571,610,44759,851,0001,111,0002,113,536
2May 16, 2026 16:0469,36172,129,23359,906,0001,132,0002,113,536
3May 16, 2026 16:0469,39369,752,31359,952,0001,114,0002,113,536
4May 16, 2026 16:0469,42169,823,52759,971,0001,120,0002,113,536
5May 16, 2026 16:0469,45769,683,82759,984,0001,139,0002,113,536
6May 16, 2026 16:0469,50671,074,86060,055,0001,111,0002,113,536
7May 16, 2026 16:0469,51169,824,24660,054,0001,116,0002,113,536
8May 16, 2026 16:0469,55369,660,89860,100,0001,107,0002,117,632
9May 16, 2026 16:0469,70670,331,05560,216,0001,126,0002,113,536