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 listNov 22, 2025 22:16Aleksei ShahoikaAleksei ShahoikaScore: 6,803,543Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 22, 2025 22:166,747,8275,973,639,3685,937,089,000999,0002,277,376
2Nov 22, 2025 22:166,757,6095,972,136,5975,944,697,0001,999,0002,277,376
3Nov 22, 2025 22:166,787,8745,998,721,2745,972,330,000999,0002,285,568
4Nov 22, 2025 22:166,802,2116,016,059,0045,983,947,0001,999,0002,289,664
5Nov 22, 2025 22:166,803,5436,013,819,6705,986,119,000999,0002,285,568
6Nov 22, 2025 22:166,813,3776,021,756,0835,995,772,00002,285,568
7Nov 22, 2025 22:166,819,9986,041,352,2786,000,599,000999,0002,277,376
8Nov 22, 2025 22:166,822,0526,028,322,2326,002,407,000999,0002,265,088
9Nov 22, 2025 22:166,850,7086,059,704,4256,026,624,0001,999,0002,277,376