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 listSep 19, 2024 20:28Andrey LikhachevAndrey LikhachevScore: 36,474Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 19, 2024 20:2836,42756,766,92230,053,0002,003,0002,289,664
2Sep 19, 2024 20:2836,47458,917,13330,091,0002,006,0002,367,488
3Sep 19, 2024 20:2836,66357,848,32030,247,0002,016,0002,359,296