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 14, 2024 11:53Ivan BessonovIvan BessonovScore: 36,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 11:5332,07593,883,82228,225,68602,265,088
2May 14, 2024 11:5332,14392,123,46528,285,79402,252,800
3May 14, 2024 11:5332,264100,918,24928,392,33902,248,704
4May 14, 2024 11:5336,24358,667,77729,901,0001,993,0002,289,664
5May 14, 2024 11:5336,25158,000,88229,908,0001,993,0002,289,664
6May 14, 2024 11:5336,27054,857,59631,918,00002,289,664
7May 14, 2024 11:5336,27557,687,23831,922,00002,277,376
8May 14, 2024 11:5336,28260,735,49430,899,0001,029,0002,289,664
9May 14, 2024 11:5336,30958,304,01530,954,000998,0002,289,664
10May 14, 2024 11:5336,31156,123,42630,956,000998,0002,269,184
11May 14, 2024 11:5336,31953,803,10629,964,0001,997,0002,273,280
12May 14, 2024 11:5336,33265,932,75430,973,000999,0002,277,376