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 04:20Yuriy LyfenkoYuriy LyfenkoScore: 44,283Success
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 04:2041,68393,660,19936,680,84002,224,128
2Jun 27, 2021 04:2041,699120,601,98736,694,72802,215,936
3Jun 27, 2021 04:2041,74896,075,88436,737,98702,220,032
4Jun 27, 2021 04:2044,20564,463,08037,903,000997,0002,269,184
5Jun 27, 2021 04:2044,24167,127,87237,908,0001,024,0002,379,776
6Jun 27, 2021 04:2044,24471,470,43537,937,000998,0002,379,776
7Jun 27, 2021 04:2044,28365,862,10536,971,0001,998,0002,379,776
8Jun 27, 2021 04:2044,33568,167,35337,015,0002,000,0002,269,184
9Jun 27, 2021 04:2044,36665,629,33337,040,0002,002,0002,379,776
10Jun 27, 2021 04:2044,36964,637,78338,044,0001,001,0002,269,184
11Jun 27, 2021 04:2044,41966,263,60338,087,0001,002,0002,269,184
12Jun 27, 2021 04:2044,42366,649,23437,088,0002,004,0002,371,584