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 listDec 21, 2025 10:44Ahmed MhedhbiAhmed MhedhbiScore: 825,326Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 21, 2025 10:44819,184743,095,161719,883,000999,0002,269,184
2Dec 21, 2025 10:44821,928749,543,776722,297,0001,000,0002,269,184
3Dec 21, 2025 10:44822,547748,628,448721,842,0001,999,0002,269,184
4Dec 21, 2025 10:44822,557745,077,734723,850,00002,531,328
5Dec 21, 2025 10:44825,326759,581,143725,287,0001,000,0002,531,328
6Dec 21, 2025 10:44827,375750,504,731727,090,0001,000,0002,531,328
7Dec 21, 2025 10:44830,756752,484,072730,065,0001,000,0002,531,328
8Dec 21, 2025 10:44832,358758,257,442730,477,0001,998,0002,445,312
9Dec 21, 2025 10:44833,425759,926,308732,414,0001,000,0002,445,312