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 listDec 17, 2024 07:21Yuriy LyfenkoYuriy LyfenkoScore: 64,972Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 07:2164,87882,031,05355,090,0002,003,0002,396,160
2Dec 17, 2024 07:2164,97281,521,14256,172,0001,003,0002,265,088
3Dec 17, 2024 07:2164,99378,784,36156,191,0001,003,0002,523,136