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 5, 2024 08:07Ivan BessonovIvan BessonovScore: 51,957Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:0751,75672,051,34044,533,0001,012,0002,269,184
2May 5, 2024 08:0751,78268,133,85445,568,00002,269,184
3May 5, 2024 08:0751,80067,785,84745,584,00002,289,664
4May 5, 2024 08:0751,80671,515,03544,576,0001,013,0002,289,664
5May 5, 2024 08:0751,87068,211,31844,632,0001,014,0002,289,664
6May 5, 2024 08:0751,89967,675,54243,686,0001,985,0002,289,664
7May 5, 2024 08:0751,957115,390,08345,722,30402,256,896
8May 5, 2024 08:0751,96974,087,49244,717,0001,016,0002,265,088
9May 5, 2024 08:0752,13271,502,21243,882,0001,994,0002,273,280
10May 5, 2024 08:0752,14171,730,17144,887,000997,0002,265,088
11May 5, 2024 08:0752,248111,750,52645,978,33102,256,896
12May 5, 2024 08:0752,264102,370,46245,992,01402,244,608