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 18:21wainCGPwainCGPScore: 18,564Success
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 18:2118,46439,550,87914,217,0002,031,0002,273,280
2Mar 7, 2025 18:2118,54238,059,89814,278,0002,039,0002,404,352
3Mar 7, 2025 18:2118,55534,391,89614,287,0002,041,0002,277,376
4Mar 7, 2025 18:2118,55832,225,51114,290,0002,041,0002,289,664
5Mar 7, 2025 18:2118,56433,285,08414,294,0002,042,0002,289,664
6Mar 7, 2025 18:2118,57838,703,97014,306,0002,043,0002,289,664
7Mar 7, 2025 18:2118,62341,669,40015,364,0001,024,0002,289,664
8Mar 7, 2025 18:2118,65239,643,35615,389,0001,025,0002,523,136
9Mar 7, 2025 18:2118,88144,632,65716,615,00002,396,160