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 listJan 24, 2025 07:118QTK8QTKScore: 45,865Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2025 07:1145,85569,586,51637,326,0003,026,0002,461,696
2Jan 24, 2025 07:1145,86567,396,56836,325,0004,036,0002,465,792
3Jan 24, 2025 07:1146,15264,641,77538,584,0002,030,0002,289,664