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 15:39Ivan BessonovIvan BessonovScore: 48,703Success
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 15:4144,722106,116,30839,355,14602,256,896
2May 5, 2024 15:4144,798102,579,20339,422,46002,256,896
3May 5, 2024 15:3944,814108,306,79039,436,05602,256,896
4May 5, 2024 15:3944,851109,922,02639,468,67402,260,992
5May 5, 2024 15:4144,86596,624,59239,481,49702,252,800
6May 5, 2024 15:3944,928115,330,55339,536,83902,265,088
7May 5, 2024 15:4148,41164,608,71442,602,00002,289,664
8May 5, 2024 15:3948,47067,657,61641,639,0001,015,0002,289,664
9May 5, 2024 15:4148,50867,707,48541,671,0001,016,0002,289,664
10May 5, 2024 15:4148,51868,440,67641,680,0001,016,0002,273,280
11May 5, 2024 15:3948,54470,633,43641,702,0001,017,0002,277,376
12May 5, 2024 15:4148,55669,940,44542,729,00002,289,664
13May 5, 2024 15:3948,70368,389,02942,859,00002,289,664
14May 5, 2024 15:4148,72070,210,43140,880,0001,994,0002,289,664
15May 5, 2024 15:4148,72871,629,73740,887,0001,994,0002,527,232
16May 5, 2024 15:3948,73264,484,93640,890,0001,994,0002,289,664
17May 5, 2024 15:3948,73281,954,94841,887,000997,0002,289,664
18May 5, 2024 15:3948,73874,013,72540,895,0001,994,0002,289,664
19May 5, 2024 15:4148,74266,965,04240,898,0001,995,0002,273,280
20May 5, 2024 15:3948,74474,202,40640,900,0001,995,0002,289,664
21May 5, 2024 15:3948,74569,108,08241,899,000997,0002,269,184
22May 5, 2024 15:3948,76668,287,99240,918,0001,996,0002,273,280
23May 5, 2024 15:4148,82368,776,00940,966,0001,998,0002,289,664
24May 5, 2024 15:4148,84470,529,59240,984,0001,999,0002,527,232