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 19:25Ivan BessonovIvan BessonovScore: 30,835Success
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 19:2528,00789,227,93124,646,36702,260,992
2May 16, 2024 19:2528,07583,385,00124,705,60702,256,896
3May 16, 2024 19:2528,07791,504,91324,708,01402,252,800
4May 16, 2024 19:2530,77649,435,51126,080,0001,003,0002,289,664
5May 16, 2024 19:2530,78350,297,05825,083,0002,006,0002,273,280
6May 16, 2024 19:2530,83054,270,91225,121,0002,009,0002,281,472
7May 16, 2024 19:2530,83549,598,67025,125,0002,010,0002,269,184
8May 16, 2024 19:2530,83649,268,52726,131,0001,005,0002,273,280
9May 16, 2024 19:2530,83848,448,25825,127,0002,010,0002,289,664
10May 16, 2024 19:2530,83953,422,68125,128,0002,010,0002,289,664
11May 16, 2024 19:2530,97549,528,06425,239,0002,019,0002,273,280
12May 16, 2024 19:2531,15549,311,33026,401,0001,015,0002,355,200