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 listSep 25, 2026 19:14Kevin HeaveyKevin HeaveyScore: 2,560Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 19:172,53910,885,5972,235,000020,480
2Sep 25, 2026 19:172,54310,786,4242,238,000020,480
3Sep 25, 2026 19:172,55510,829,1502,249,000020,480
4Sep 25, 2026 19:172,56010,822,6342,253,000020,480
5Sep 25, 2026 19:172,56011,440,5842,253,000020,480
6Sep 25, 2026 19:172,56410,823,6982,257,000020,480
7Sep 25, 2026 19:172,56510,768,3982,258,000020,480
8Sep 25, 2026 19:172,56811,369,7352,260,000020,480
9Sep 25, 2026 19:172,57612,130,5602,267,000020,480