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 listJan 23, 2025 07:228QTK8QTKScore: 12,554,318Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 07:2212,485,33811,014,383,17410,985,098,0001,999,0002,519,040
2Jan 23, 2025 07:2212,516,09211,047,004,92711,009,163,0004,998,0002,289,664
3Jan 23, 2025 07:2212,519,06811,046,377,43711,013,782,0002,998,0002,269,184
4Jan 23, 2025 07:2212,523,19111,046,791,96811,020,408,00002,277,376
5Jan 23, 2025 07:2212,554,31811,073,486,39811,044,802,0002,998,0002,277,376
6Jan 23, 2025 07:2212,576,88511,099,013,26711,064,661,0002,998,0002,289,664
7Jan 23, 2025 07:2212,577,48011,098,354,61311,066,183,0001,999,0002,277,376
8Jan 23, 2025 07:2212,605,77211,124,747,10011,091,080,0001,999,0002,277,376
9Jan 23, 2025 07:2212,630,10711,149,012,75311,112,495,0001,999,0002,277,376