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 12, 2026 08:57Haha ExpertHaha ExpertScore: 129,252Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 09:00128,880121,813,634113,415,00002,117,632
2Sep 12, 2026 09:00128,921122,008,277113,451,00002,117,632
3Sep 12, 2026 09:00128,927122,046,557112,406,0001,050,0002,117,632
4Sep 12, 2026 09:00129,006121,985,277113,526,00002,117,632
5Sep 12, 2026 09:00129,252123,311,643113,742,00002,117,632
6Sep 12, 2026 09:00129,504123,260,364113,964,00002,117,632
7Sep 12, 2026 09:00129,513122,677,063113,972,00002,117,632
8Sep 12, 2026 09:00129,757122,691,592114,187,00002,117,632
9Sep 12, 2026 09:00129,819122,689,853113,241,0001,000,0002,117,632