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 1, 2025 18:02zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 18:0200000Error: expected "51338530552025 ", got "51338530552018 "stderr
2Jan 1, 2025 18:023,55616,961,8451,043,0002,086,0002,461,696
3Jan 1, 2025 18:023,56920,516,4471,047,0002,094,0002,465,792
4Jan 1, 2025 18:023,57419,147,2111,048,0002,097,0002,281,472