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 14, 2024 17:33MatthiasMatthiasScore: 12,543,430Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 17:3312,470,81411,002,275,10210,973,317,000999,0002,277,376
2Dec 14, 2024 17:3312,472,67011,004,296,09510,972,952,0002,998,0002,281,472
3Dec 14, 2024 17:3312,479,07411,009,095,42010,981,585,00002,277,376
4Dec 14, 2024 17:3312,530,14811,055,358,70511,025,531,000999,0002,277,376
5Dec 14, 2024 17:3312,543,43011,065,725,07311,036,219,0001,999,0002,289,664
6Dec 14, 2024 17:3312,630,20911,141,749,54311,112,585,0001,999,0002,277,376
7Dec 14, 2024 17:3312,638,65611,148,043,43211,120,018,0001,999,0002,285,568
8Dec 14, 2024 17:3312,643,56411,161,529,83011,124,337,0001,999,0002,277,376
9Dec 14, 2024 17:3312,665,22811,174,199,65511,145,401,00002,277,376