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 28, 2022 20:10Yuriy LyfenkoYuriy LyfenkoScore: 29,517Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 20:1029,36789,706,73225,842,52902,236,416
2Dec 28, 2022 20:1029,51797,596,62925,975,26402,236,416
3Dec 28, 2022 20:1029,56084,904,76126,013,15202,228,224