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 20, 2025 18:46wainCGPwainCGPScore: 1,646,444Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2025 18:461,638,7181,475,242,4781,438,072,0004,000,0002,465,792
2Feb 20, 2025 18:461,646,4441,474,813,3431,445,872,0002,999,0002,465,792
3Feb 20, 2025 18:461,646,9771,472,660,9651,446,340,0003,000,0002,428,928