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 27, 2021 19:38Yuriy LyfenkoYuriy LyfenkoScore: 37,578Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3831,72591,137,17427,918,30302,228,224
2Jun 27, 2021 19:3831,72897,841,97327,920,40502,220,032
3Jun 27, 2021 19:3831,74292,140,81227,932,86502,215,936
4Jun 27, 2021 19:3837,54965,287,43731,041,0002,002,0002,375,680
5Jun 27, 2021 19:3837,55063,168,76032,043,0001,001,0002,379,776
6Jun 27, 2021 19:3837,56454,741,67731,053,0002,003,0002,379,776
7Jun 27, 2021 19:3837,57860,367,76431,065,0002,004,0002,482,176
8Jun 27, 2021 19:3837,68158,002,22431,150,0002,009,0002,269,184
9Jun 27, 2021 19:3837,69060,117,87631,157,0002,010,0002,379,776
10Jun 27, 2021 19:3837,74857,003,64431,205,0002,013,0002,269,184
11Jun 27, 2021 19:3837,75061,243,95331,207,0002,013,0002,269,184
12Jun 27, 2021 19:3837,77457,398,52731,227,0002,014,0002,265,088