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 22:34Yuriy LyfenkoYuriy LyfenkoScore: 38,823Success
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 22:3431,82687,699,48528,006,55402,207,744
2Jun 27, 2021 22:3431,89390,947,82728,065,89802,215,936
3Jun 27, 2021 22:3431,94173,503,27128,108,13802,248,704
4Jun 27, 2021 22:3438,70159,018,04833,056,0001,001,0002,269,184
5Jun 27, 2021 22:3438,70660,858,64033,060,0001,001,0002,269,184
6Jun 27, 2021 22:3438,70758,614,98133,061,0001,001,0002,269,184
7Jun 27, 2021 22:3438,82365,521,22832,155,0002,009,0002,379,776
8Jun 27, 2021 22:3438,85859,631,25833,190,0001,005,0002,375,680
9Jun 27, 2021 22:3438,93260,529,23633,253,0001,007,0002,379,776
10Jun 27, 2021 22:3439,01455,376,09533,323,0001,009,0002,269,184
11Jun 27, 2021 22:3439,09158,607,33233,389,0001,011,0002,269,184
12Jun 27, 2021 22:3439,09366,677,11334,402,00002,379,776