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 20:50Ivan BessonovIvan BessonovScore: 20,938Success
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 20:5020,52737,714,93816,057,0002,007,0002,330,624
2May 18, 2024 20:5020,54034,750,65016,067,0002,008,0002,326,528
3May 18, 2024 20:5020,55341,824,86517,083,0001,004,0002,322,432
4May 18, 2024 20:5020,58535,009,78617,109,0001,006,0002,289,664
5May 18, 2024 20:5020,59950,748,07218,127,00002,289,664
6May 18, 2024 20:5020,60543,697,23716,118,0002,014,0002,322,432
7May 18, 2024 20:5020,93840,882,39017,402,0001,023,0002,322,432
8May 18, 2024 20:5021,14285,557,91618,605,20802,187,264
9May 18, 2024 20:5021,16485,233,97818,624,63102,301,952
10May 18, 2024 20:5021,19176,960,83318,648,32902,256,896
11May 18, 2024 20:5021,47240,191,89817,901,000994,0002,400,256
12May 18, 2024 20:5021,47843,221,56516,912,0001,989,0002,289,664