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 12:18wainCGPwainCGPScore: 30,726Success
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 12:1830,58554,273,77524,922,0001,993,0002,269,184
2Feb 26, 2025 12:1830,66051,949,05124,983,0001,998,0002,289,664
3Feb 26, 2025 12:1830,69053,672,66325,007,0002,000,0002,289,664
4Feb 26, 2025 12:1830,71653,738,85125,028,0002,002,0002,289,664
5Feb 26, 2025 12:1830,72653,127,76725,037,0002,002,0002,277,376
6Feb 26, 2025 12:1830,78153,987,52625,081,0002,006,0002,289,664
7Feb 26, 2025 12:1830,79951,019,32425,096,0002,007,0002,289,664
8Feb 26, 2025 12:1830,81550,064,73825,109,0002,008,0002,289,664
9Feb 26, 2025 12:1830,82852,310,42125,120,0002,009,0002,289,664