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 21, 2021 18:30Yuriy 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 21, 2021 18:2800000Error: expected "51284712919754 ", got "51285225839408 "
2Jun 21, 2021 18:2900000Error: expected "50983815739678 ", got "50984506871027 "
3Jun 21, 2021 18:2900000Error: expected "50947626938866 ", got "50948841959458 "
4Jun 21, 2021 18:3000000Error: expected "51015451697093 ", got "51016645311562 "
5Jun 21, 2021 18:3074,053127,552,41465,166,60302,215,936
6Jun 21, 2021 18:3174,058124,830,09965,170,96302,220,032
7Jun 21, 2021 18:3174,073123,159,47165,184,01302,220,032
8Jun 21, 2021 18:3174,087138,304,44965,196,79802,224,128
9Jun 21, 2021 18:3074,175126,411,10865,274,31802,240,512
10Jun 21, 2021 18:3074,235132,492,89965,326,96802,207,744