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 11:55KeefeKeefeScore: 116,851Success
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 11:55116,552130,503,479102,566,00002,277,376
2Feb 22, 2025 11:55116,851131,670,736101,831,000998,0002,396,160
3Feb 22, 2025 11:55117,230124,063,878101,159,0002,003,0002,404,352