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 18, 2024 17:32Ivan BessonovIvan BessonovScore: 17,684Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 17:3217,47841,809,65614,356,0001,025,0002,289,664
2May 18, 2024 17:3017,52230,820,44015,419,00002,289,664
3May 18, 2024 17:3017,53540,183,31714,403,0001,028,0002,289,664
4May 18, 2024 17:3217,53835,578,15114,405,0001,028,0002,289,664
5May 18, 2024 17:3017,54131,879,33015,436,00002,404,352
6May 18, 2024 17:3217,54230,409,22014,408,0001,029,0002,428,928
7May 18, 2024 17:3217,55232,798,95915,446,00002,297,856
8May 18, 2024 17:3017,55934,448,42214,422,0001,030,0002,293,760
9May 18, 2024 17:3017,58132,733,80214,440,0001,031,0002,306,048
10May 18, 2024 17:3017,59132,413,27714,448,0001,032,0002,301,952
11May 18, 2024 17:3217,63337,318,67214,483,0001,034,0002,289,664
12May 18, 2024 17:3217,63432,623,39314,484,0001,034,0002,289,664
13May 18, 2024 17:3217,68437,146,36614,525,0001,037,0002,289,664
14May 18, 2024 17:3018,37443,658,45414,148,0002,021,0002,289,664
15May 18, 2024 17:3218,42080,849,60016,209,51402,293,760
16May 18, 2024 17:3218,43441,998,90115,209,0001,013,0002,289,664
17May 18, 2024 17:3018,54836,777,09914,282,0002,040,0002,289,664
18May 18, 2024 17:3218,54932,639,49714,283,0002,040,0002,297,856
19May 18, 2024 17:3018,61344,193,11015,356,0001,023,0002,314,240
20May 18, 2024 17:3018,95384,767,54916,678,41502,285,568
21May 18, 2024 17:3219,28571,422,71716,970,44902,293,760
22May 18, 2024 17:3019,297113,818,25016,981,56902,285,568
23May 18, 2024 17:3019,38653,757,96417,059,61802,285,568
24May 18, 2024 17:3219,38785,341,58017,060,24602,293,760