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 15:52Ivan BessonovIvan BessonovScore: 19,494Success
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 15:5219,36033,134,84115,033,0002,004,0002,306,048
2May 18, 2024 15:5219,40645,497,55715,068,0002,009,0002,310,144
3May 18, 2024 15:5219,43435,470,38615,090,0002,012,0002,289,664
4May 18, 2024 15:5219,43640,253,64915,092,0002,012,0002,289,664
5May 18, 2024 15:5219,44137,560,69715,096,0002,012,0002,310,144
6May 18, 2024 15:5219,47547,031,06815,122,0002,016,0002,408,448
7May 18, 2024 15:5219,49443,641,26215,137,0002,018,0002,301,952
8May 18, 2024 15:5220,11287,767,65117,698,40202,285,568
9May 18, 2024 15:5220,15745,577,43717,738,00002,314,240
10May 18, 2024 15:5220,35248,886,49216,915,000995,0002,301,952
11May 18, 2024 15:5220,52389,370,26918,060,27102,293,760
12May 18, 2024 15:5220,72792,205,33718,239,42302,285,568