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, 2024 18:59AnSaAnSaScore: 200,958Success
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, 2024 18:59200,829232,925,642176,729,92702,211,840
2Jan 24, 2024 18:59200,958243,487,441176,842,99302,215,936
3Jan 24, 2024 18:59201,163249,876,849177,023,26902,215,936