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 listJul 5, 2024 15:17mberman12mberman12Score: 7,367,977Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2024 15:177,347,0746,522,481,2166,465,425,28802,269,184
2Jul 5, 2024 15:177,367,9776,553,875,3476,483,819,71002,256,896
3Jul 5, 2024 15:177,416,0196,582,144,9286,526,096,35202,244,608