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:29Ivan BessonovIvan BessonovScore: 20,056Success
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:2919,22644,496,29815,924,000995,0002,301,952
2May 18, 2024 15:2919,24832,410,65715,880,0001,058,0002,289,664
3May 18, 2024 15:2919,26040,607,85614,955,0001,994,0002,289,664
4May 18, 2024 15:2919,28147,819,64414,971,0001,996,0002,297,856
5May 18, 2024 15:2919,30143,877,41915,986,000999,0002,306,048
6May 18, 2024 15:2919,99042,090,52816,557,0001,034,0002,289,664
7May 18, 2024 15:2920,05676,238,91017,648,88502,285,568
8May 18, 2024 15:2920,10646,364,57116,653,0001,040,0002,310,144
9May 18, 2024 15:2920,11191,463,13817,697,56802,297,856
10May 18, 2024 15:2920,12539,475,89217,710,00002,297,856
11May 18, 2024 15:2920,15849,074,65316,696,0001,043,0002,289,664
12May 18, 2024 15:2920,62989,530,62618,153,15602,285,568