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 28, 2021 03:27Yuriy LyfenkoYuriy LyfenkoScore: 37,563Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 03:2732,24184,914,51728,372,03502,228,224
2Jun 28, 2021 03:2732,277102,062,94928,403,74702,232,320
3Jun 28, 2021 03:2732,310101,611,13328,432,82002,224,128
4Jun 28, 2021 03:2737,44058,321,42030,951,0001,996,0002,269,184
5Jun 28, 2021 03:2737,48662,631,94731,989,000999,0002,269,184
6Jun 28, 2021 03:2737,51657,703,18331,014,0002,000,0002,269,184
7Jun 28, 2021 03:2737,56362,012,18332,054,0001,001,0002,269,184
8Jun 28, 2021 03:2737,57861,910,02231,065,0002,004,0002,269,184
9Jun 28, 2021 03:2737,64061,463,56232,120,0001,003,0002,269,184
10Jun 28, 2021 03:2737,65659,207,31831,129,0002,008,0002,375,680
11Jun 28, 2021 03:2737,69164,350,21732,163,0001,005,0002,367,488
12Jun 28, 2021 03:2737,78060,633,41532,239,0001,007,0002,269,184