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:05Yuriy LyfenkoYuriy LyfenkoScore: 44,222Success
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:0541,633102,622,13436,636,72602,232,320
2Jun 27, 2021 04:0541,737105,597,10236,728,52402,215,936
3Jun 27, 2021 04:0541,84894,904,83436,826,03302,211,840
4Jun 27, 2021 04:0544,19266,156,98136,895,0001,994,0002,269,184
5Jun 27, 2021 04:0544,20966,611,95937,881,0001,023,0002,269,184
6Jun 27, 2021 04:0544,21467,935,44037,911,000997,0002,375,680
7Jun 27, 2021 04:0544,22264,029,26536,920,0001,995,0002,379,776
8Jun 27, 2021 04:0544,32264,586,05537,003,0002,000,0002,269,184
9Jun 27, 2021 04:0544,34964,277,23637,026,0002,001,0002,269,184
10Jun 27, 2021 04:0544,36767,787,30137,041,0002,002,0002,269,184
11Jun 27, 2021 04:0544,37367,569,78239,048,00002,269,184
12Jun 27, 2021 04:0544,48668,867,20237,141,0002,007,0002,269,184