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 listJun 24, 2021 00:26Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 24, 2021 00:2600000Error: expected "51391090673413 ", got "51392799733364 "
2Jun 24, 2021 00:2700000Error: expected "51275045141391 ", got "51275055638380 "
3Jun 24, 2021 00:2700000Error: expected "50776231202473 ", got "50777491534610 "
4Jun 24, 2021 00:2700000Error: expected "51207659418852 ", got "51208546989451 "
5Jun 24, 2021 00:2700000Error: expected "51176635913249 ", got "51176727345749 "
6Jun 24, 2021 00:2738,818100,389,71134,159,61802,211,840
7Jun 24, 2021 00:2738,83588,433,39434,174,96902,215,936
8Jun 24, 2021 00:2739,063100,301,15534,375,43702,220,032