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 21, 2025 15:15wainCGPwainCGPScore: 1,578,932Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 21, 2025 15:151,574,7391,408,096,4831,380,771,0004,999,0002,490,368
2Feb 21, 2025 15:151,578,9321,422,248,4231,383,463,0005,997,0002,396,160
3Feb 21, 2025 15:151,582,7411,419,207,3421,388,813,0003,999,0002,281,472