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 05:50Yuriy LyfenkoYuriy LyfenkoScore: 36,767Success
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 05:5033,44198,511,62729,428,22402,215,936
2Jun 27, 2021 05:5033,49696,153,85629,476,62002,232,320
3Jun 27, 2021 05:5033,53091,954,09429,506,79502,224,128
4Jun 27, 2021 05:5036,67061,177,83231,262,0001,008,0002,269,184
5Jun 27, 2021 05:5036,67459,964,95131,265,0001,008,0002,379,776
6Jun 27, 2021 05:5036,74455,244,66632,335,00002,371,584
7Jun 27, 2021 05:5036,76761,576,07931,344,0001,011,0002,269,184
8Jun 27, 2021 05:5036,83955,060,75231,405,0001,013,0002,375,680
9Jun 27, 2021 05:5036,85758,904,71032,434,00002,269,184
10Jun 27, 2021 05:5036,85957,617,22932,436,00002,367,488
11Jun 27, 2021 05:5036,89054,543,91532,463,00002,269,184
12Jun 27, 2021 05:5036,90957,307,17431,465,0001,015,0002,383,872