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 26, 2025 19:06wainCGPwainCGPScore: 30,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2025 19:0630,55155,295,86324,894,0001,991,0002,281,472
2Feb 26, 2025 19:0630,55555,952,18024,897,0001,991,0002,289,664
3Feb 26, 2025 19:0630,60248,421,50326,930,00002,387,968
4Feb 26, 2025 19:0630,60550,465,71325,935,000997,0002,289,664
5Feb 26, 2025 19:0630,66050,226,56824,983,0001,998,0002,289,664
6Feb 26, 2025 19:0630,68548,656,58125,003,0002,000,0002,289,664
7Feb 26, 2025 19:0630,69950,800,16126,015,0001,000,0002,269,184
8Feb 26, 2025 19:0630,72553,560,71625,036,0002,002,0002,289,664
9Feb 26, 2025 19:0630,73950,171,46126,049,0001,001,0002,289,664