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 19:54Andrey LikhachevAndrey LikhachevScore: 39,907Success
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 19:5439,88364,208,11833,092,0002,005,0002,367,488
2Sep 19, 2024 19:5439,90760,416,58033,112,0002,006,0002,359,296
3Sep 19, 2024 19:5439,92661,167,75934,132,0001,003,0002,293,760