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:40Wookyung JeongWookyung JeongScore: 7,382,313Success
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:417,324,9406,474,250,8366,443,948,0001,999,0002,277,376
2Dec 19, 2025 11:407,347,0356,494,150,5836,461,394,0003,997,0002,277,376
3Dec 19, 2025 11:417,364,2066,507,121,4746,478,503,0001,998,0002,281,472
4Dec 19, 2025 11:407,382,3136,527,692,2486,495,436,000999,0002,277,376
5Dec 19, 2025 11:417,391,5696,528,834,5116,501,583,0002,998,0002,277,376
6Dec 19, 2025 11:407,415,8426,547,763,9966,524,942,000999,0002,281,472