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 8, 2024 11:19Ivan BessonovIvan BessonovScore: 48,385Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 11:1944,401107,088,27639,073,00902,260,992
2May 8, 2024 11:1944,432115,830,87739,100,36102,256,896
3May 8, 2024 11:1944,570117,586,20539,221,18202,260,992
4May 8, 2024 11:1948,17264,898,67941,382,0001,009,0002,277,376
5May 8, 2024 11:1948,30069,080,97842,504,00002,392,064
6May 8, 2024 11:1948,35170,803,34041,536,0001,013,0002,289,664
7May 8, 2024 11:1948,38563,538,28442,579,00002,289,664
8May 8, 2024 11:1948,47268,811,76042,655,00002,289,664
9May 8, 2024 11:1948,48470,131,59541,651,0001,015,0002,277,376
10May 8, 2024 11:1948,72471,561,61741,880,000997,0002,289,664
11May 8, 2024 11:1948,73368,870,94741,888,000997,0002,289,664
12May 8, 2024 11:1948,73568,019,70641,890,000997,0002,277,376