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 18:54Ivan BessonovIvan BessonovScore: 31,308Success
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 18:5428,24571,767,28024,855,97302,252,800
2May 16, 2024 18:5428,261101,492,76524,870,00302,260,992
3May 16, 2024 18:5428,32697,566,41724,926,51102,260,992
4May 16, 2024 18:5431,27650,246,68827,523,00002,289,664
5May 16, 2024 18:5431,27748,451,45327,524,00002,269,184
6May 16, 2024 18:5431,27854,929,91426,506,0001,019,0002,269,184
7May 16, 2024 18:5431,30853,984,47826,531,0001,020,0002,289,664
8May 16, 2024 18:5431,31353,598,43127,555,00002,289,664
9May 16, 2024 18:5431,31854,168,58527,560,00002,289,664
10May 16, 2024 18:5431,51452,388,32227,732,00002,289,664
11May 16, 2024 18:5431,52560,428,35926,715,0001,027,0002,281,472
12May 16, 2024 18:5431,69155,892,78025,896,0001,992,0002,277,376