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 16, 2025 15:27wainCGPwainCGPScore: 18,040Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2025 15:2717,81638,796,10814,633,0001,045,0002,269,184
2Mar 16, 2025 15:2717,86145,735,92215,718,00002,265,088
3Mar 16, 2025 15:2717,95732,350,85614,749,0001,053,0002,273,280
4Mar 16, 2025 15:2718,03933,557,85013,890,0001,984,0002,285,568
5Mar 16, 2025 15:2718,04032,065,15913,891,0001,984,0002,289,664
6Mar 16, 2025 15:2718,06333,232,51614,902,000993,0002,289,664
7Mar 16, 2025 15:2718,07333,160,90913,916,0001,988,0002,289,664
8Mar 16, 2025 15:2718,07336,342,32613,916,0001,988,0002,289,664
9Mar 16, 2025 15:2718,11439,327,33113,948,0001,992,0002,277,376