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:22Yuriy LyfenkoYuriy LyfenkoScore: 43,830Success
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:2240,677119,190,30835,795,81802,211,840
2Jun 21, 2021 18:2241,00090,965,29536,079,71602,215,936
3Jun 21, 2021 18:2241,013106,587,13436,091,12302,220,032
4Jun 21, 2021 18:2243,70265,922,04637,446,0001,012,0002,269,184
5Jun 21, 2021 18:2243,77659,711,02338,523,00002,371,584
6Jun 21, 2021 18:2243,78860,705,85338,533,00002,363,392
7Jun 21, 2021 18:2243,83074,547,78637,555,0001,015,0002,367,488
8Jun 21, 2021 18:2243,88065,308,61838,614,00002,269,184
9Jun 21, 2021 18:2243,88366,114,82938,617,00002,269,184
10Jun 21, 2021 18:2243,89162,755,76937,608,0001,016,0002,265,088
11Jun 21, 2021 18:2243,95568,911,03037,663,0001,017,0002,269,184
12Jun 21, 2021 18:2243,96763,420,96337,673,0001,018,0002,269,184