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 19:39wainCGPwainCGPScore: 53,539Success
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 19:3953,28973,493,14543,836,0003,058,0002,420,736
2Feb 22, 2025 19:3953,29075,028,35241,907,0004,988,0002,400,256
3Feb 22, 2025 19:3953,30770,759,03440,922,0005,988,0002,469,888
4Feb 22, 2025 19:3953,32472,068,55740,935,0005,990,0002,494,464
5Feb 22, 2025 19:3953,53977,033,01443,105,0004,009,0002,486,272
6Feb 22, 2025 19:3953,58171,659,46842,135,0005,016,0002,494,464
7Feb 22, 2025 19:3953,63064,505,75042,174,0005,020,0002,523,136
8Feb 22, 2025 19:3954,05874,956,77143,523,0004,048,0002,502,656
9Feb 22, 2025 19:3954,42777,572,27144,903,0002,993,0002,310,144