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 22, 2025 13:48wainCGPwainCGPScore: 61,010Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 13:4860,75174,766,51348,418,0005,043,0002,478,080
2Feb 22, 2025 13:4860,80176,786,51050,477,0003,028,0002,482,176
3Feb 22, 2025 13:4860,82279,615,76749,484,0004,039,0002,412,544
4Feb 22, 2025 13:4860,89181,372,08248,529,0005,055,0002,289,664
5Feb 22, 2025 13:4861,01080,626,41349,637,0004,052,0002,347,008
6Feb 22, 2025 13:4861,20579,258,72250,868,0002,992,0002,289,664
7Feb 22, 2025 13:4861,21884,207,54949,882,0003,990,0002,396,160
8Feb 22, 2025 13:4861,25687,107,60648,914,0004,991,0002,338,816
9Feb 22, 2025 13:4861,37679,627,67850,011,0004,000,0002,392,064