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 16, 2024 20:24Ivan BessonovIvan BessonovScore: 26,274Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:2426,13847,108,24021,001,0002,000,0002,265,088
2May 16, 2024 20:2426,18652,014,84921,041,0002,003,0002,289,664
3May 16, 2024 20:2426,19550,087,36222,050,0001,002,0002,269,184
4May 16, 2024 20:2426,24448,673,00221,087,0002,008,0002,273,280
5May 16, 2024 20:2426,26949,667,49121,107,0002,010,0002,289,664
6May 16, 2024 20:2426,27053,741,63221,108,0002,010,0002,289,664
7May 16, 2024 20:2426,27445,748,90421,111,0002,010,0002,289,664
8May 16, 2024 20:2426,30251,624,60521,134,0002,012,0002,289,664
9May 16, 2024 20:2426,35246,617,18920,292,0002,898,0002,351,104
10May 16, 2024 20:2427,82791,118,51324,487,78702,256,896
11May 16, 2024 20:2427,83793,795,18324,496,47402,256,896
12May 16, 2024 20:2427,83893,764,36924,497,30802,256,896