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 19, 2025 11:17Wookyung JeongWookyung JeongScore: 6,794,380Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 11:176,756,0785,971,772,5435,944,350,000999,0002,277,376
2Dec 19, 2025 11:176,776,5755,993,593,5065,960,388,0002,998,0002,281,472
3Dec 19, 2025 11:176,779,1135,992,433,4715,963,620,0001,999,0002,289,664
4Dec 19, 2025 11:176,791,5206,005,733,9785,975,539,000999,0002,277,376
5Dec 19, 2025 11:176,794,3806,003,561,7225,977,055,0001,999,0002,281,472
6Dec 19, 2025 11:176,808,3916,015,199,8645,989,385,0001,999,0002,277,376
7Dec 19, 2025 11:176,812,9746,024,297,4465,993,418,0001,999,0002,281,472
8Dec 19, 2025 11:176,830,9406,036,158,4826,010,228,000999,0002,277,376
9Dec 19, 2025 11:176,833,1036,040,634,5766,010,133,0002,998,0002,281,472