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 19:03AnSaAnSaScore: 200,668Success
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 19:03200,362233,520,950176,318,86102,244,608
2Jan 24, 2024 19:03200,668239,116,947176,587,45102,240,512
3Jan 24, 2024 19:03201,232238,116,363177,084,36702,228,224