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 listMar 7, 2025 17:59wainCGPwainCGPScore: 23,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 7, 2025 17:5923,13042,824,32619,337,0001,017,0002,277,376
2Mar 7, 2025 17:5923,14149,612,54620,364,00002,289,664
3Mar 7, 2025 17:5923,18342,303,68919,381,0001,020,0002,289,664
4Mar 7, 2025 17:5923,21646,199,99119,409,0001,021,0002,265,088
5Mar 7, 2025 17:5923,25642,585,68719,442,0001,023,0002,273,280
6Mar 7, 2025 17:5923,25740,503,72019,443,0001,023,0002,269,184
7Mar 7, 2025 17:5923,32543,711,39819,500,0001,026,0002,289,664
8Mar 7, 2025 17:5923,36443,658,51419,532,0001,028,0002,289,664
9Mar 7, 2025 17:5923,49845,191,22319,645,0001,033,0002,289,664