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 13, 2024 08:54Ivan BessonovIvan BessonovScore: 35,327Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:5431,93690,713,71828,103,34202,248,704
2May 13, 2024 08:5431,981111,493,33728,142,92402,260,992
3May 13, 2024 08:5432,053101,686,89428,206,26702,252,800
4May 13, 2024 08:5435,25059,293,27929,019,0002,001,0002,289,664
5May 13, 2024 08:5435,26352,946,03230,030,0001,001,0002,289,664
6May 13, 2024 08:5435,29262,193,27529,054,0002,003,0002,289,664
7May 13, 2024 08:5435,32753,127,78829,083,0002,005,0002,289,664
8May 13, 2024 08:5435,33356,299,08130,090,0001,003,0002,277,376
9May 13, 2024 08:5435,34052,359,78930,096,0001,003,0002,289,664
10May 13, 2024 08:5435,35255,252,23729,103,0002,007,0002,269,184
11May 13, 2024 08:5435,41655,145,78331,166,00002,273,280
12May 13, 2024 08:5435,53952,831,04029,257,0002,017,0002,273,280