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:25Yuriy LyfenkoYuriy LyfenkoScore: 44,060Success
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:2531,96985,369,08028,132,77302,236,416
2Jun 27, 2021 19:2531,98985,486,99828,149,99002,220,032
3Jun 27, 2021 19:2531,99389,877,39828,154,25302,228,224
4Jun 27, 2021 19:2543,96865,839,41936,708,0001,984,0002,375,680
5Jun 27, 2021 19:2544,01871,840,72938,736,00002,375,680
6Jun 27, 2021 19:2544,02670,140,28637,724,0001,019,0002,375,680
7Jun 27, 2021 19:2544,06062,639,76137,753,0001,020,0002,375,680
8Jun 27, 2021 19:2544,06463,933,95138,776,00002,269,184
9Jun 27, 2021 19:2544,07363,124,43836,796,0001,988,0002,269,184
10Jun 27, 2021 19:2544,09967,395,95138,807,00002,265,088
11Jun 27, 2021 19:2544,19766,572,33236,899,0001,994,0002,269,184
12Jun 27, 2021 19:2544,20367,302,43836,905,0001,994,0002,367,488