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 20:56Ivan BessonovIvan BessonovScore: 31,450Success
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 20:5631,27553,390,79426,503,0001,019,0002,289,664
2May 16, 2024 20:5631,32648,541,18927,567,00002,277,376
3May 16, 2024 20:5631,34350,119,90426,561,0001,021,0002,359,296
4May 16, 2024 20:5631,41345,809,18626,620,0001,023,0002,289,664
5May 16, 2024 20:5631,42648,360,81826,631,0001,024,0002,269,184
6May 16, 2024 20:5631,44853,925,68927,674,00002,289,664
7May 16, 2024 20:5631,45059,447,79026,651,0001,025,0002,289,664
8May 16, 2024 20:5631,46057,447,05426,660,0001,025,0002,269,184
9May 16, 2024 20:5631,54254,719,43726,729,0001,028,0002,289,664
10May 16, 2024 20:5634,279106,954,28630,165,50802,256,896
11May 16, 2024 20:5634,32693,828,49030,207,26602,265,088
12May 16, 2024 20:5634,394112,857,13630,266,50002,252,800