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 21, 2021 18:43Yuriy LyfenkoYuriy LyfenkoScore: 44,231Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:4339,28294,807,93134,568,31002,224,128
2Jun 21, 2021 18:4339,28797,671,71434,572,63902,215,936
3Jun 21, 2021 18:4339,40786,813,90334,678,45602,224,128
4Jun 21, 2021 18:4344,19367,059,10037,893,000997,0002,371,584
5Jun 21, 2021 18:4344,20864,342,47537,906,000997,0002,367,488
6Jun 21, 2021 18:4344,21869,202,98837,915,000997,0002,371,584
7Jun 21, 2021 18:4344,23167,258,04137,925,000998,0002,265,088
8Jun 21, 2021 18:4344,23266,670,90035,930,0002,994,0002,363,392
9Jun 21, 2021 18:4344,27465,206,73137,962,000999,0002,265,088
10Jun 21, 2021 18:4344,32464,987,81537,005,0002,000,0002,519,040
11Jun 21, 2021 18:4344,35368,871,29737,030,0002,001,0002,371,584
12Jun 21, 2021 18:4344,38565,447,06838,058,0001,001,0002,265,088