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 listFeb 20, 2025 16:24wainCGPwainCGPScore: 12,580,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2025 16:2412,483,49711,015,897,03610,983,478,0001,999,0002,277,376
2Feb 20, 2025 16:2412,549,95111,078,346,54711,040,959,0002,998,0002,277,376
3Feb 20, 2025 16:2412,560,12611,081,581,25311,049,913,0002,998,0002,265,088
4Feb 20, 2025 16:2412,569,48411,091,751,61711,059,147,0001,999,0002,277,376
5Feb 20, 2025 16:2412,580,05611,099,215,84311,064,451,0005,998,0002,289,664
6Feb 20, 2025 16:2412,591,44511,106,118,58711,078,473,0001,999,0002,277,376
7Feb 20, 2025 16:2412,624,51511,137,900,01211,107,574,0001,999,0002,277,376
8Feb 20, 2025 16:2412,634,31111,148,525,70011,115,196,0002,998,0002,277,376
9Feb 20, 2025 16:2412,662,84811,179,438,06111,140,307,0002,999,0002,269,184