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 17, 2024 11:50Ivan BessonovIvan BessonovScore: 23,415Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 11:4723,19737,322,31219,393,0001,020,0002,289,664
2May 17, 2024 11:4723,21848,054,19219,411,0001,021,0002,523,136
3May 17, 2024 11:4723,23242,585,06420,444,00002,265,088
4May 17, 2024 11:5023,25042,409,13020,460,00002,269,184
5May 17, 2024 11:5023,25041,756,17919,437,0001,023,0002,523,136
6May 17, 2024 11:5023,27635,088,92819,459,0001,024,0002,289,664
7May 17, 2024 11:4723,28345,533,73520,489,00002,289,664
8May 17, 2024 11:4723,33049,187,07820,530,00002,265,088
9May 17, 2024 11:5023,33143,763,93519,505,0001,026,0002,523,136
10May 17, 2024 11:4723,34743,720,66119,518,0001,027,0002,289,664
11May 17, 2024 11:4723,38143,496,85219,547,0001,028,0002,269,184
12May 17, 2024 11:5023,38946,623,14419,553,0001,029,0002,523,136
13May 17, 2024 11:5023,41541,238,21619,575,0001,030,0002,289,664
14May 17, 2024 11:5023,42244,366,31620,611,00002,289,664
15May 17, 2024 11:5023,45144,319,46919,606,0001,031,0002,289,664
16May 17, 2024 11:5023,46647,498,19518,684,0001,966,0002,289,664
17May 17, 2024 11:4723,51946,743,29220,697,00002,289,664
18May 17, 2024 11:4723,62448,189,69119,750,0001,039,0002,289,664
19May 17, 2024 11:5023,72989,327,10320,881,12902,256,896
20May 17, 2024 11:5023,77481,227,53420,921,00102,244,608
21May 17, 2024 11:4723,79797,481,77920,941,13402,256,896
22May 17, 2024 11:5023,80073,678,40120,943,83402,248,704
23May 17, 2024 11:4723,86291,756,02320,998,32302,252,800
24May 17, 2024 11:4723,87060,996,60921,005,98302,248,704