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 listMay 5, 2024 09:22Ivan BessonovIvan BessonovScore: 47,824Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 09:2246,979122,037,82541,341,61502,252,800
2May 5, 2024 09:2247,067113,739,48941,419,13602,252,800
3May 5, 2024 09:2247,277108,984,47441,603,71102,265,088
4May 5, 2024 09:2247,68965,906,51939,968,0001,998,0002,281,472
5May 5, 2024 09:2247,74868,677,17540,018,0002,000,0002,289,664
6May 5, 2024 09:2247,75162,325,32740,020,0002,001,0002,379,776
7May 5, 2024 09:2247,82466,122,68241,083,0001,002,0002,269,184
8May 5, 2024 09:2247,84466,252,10640,099,0002,004,0002,289,664
9May 5, 2024 09:2247,85967,053,17640,111,0002,005,0002,265,088
10May 5, 2024 09:2247,86165,555,48040,113,0002,005,0002,289,664
11May 5, 2024 09:2247,88664,210,60741,137,0001,003,0002,367,488
12May 5, 2024 09:2248,16163,616,18741,373,0001,009,0002,269,184