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 16:11Ivan BessonovIvan BessonovScore: 20,098Success
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 16:1119,36436,472,94615,036,0002,004,0002,289,664
2May 18, 2024 16:1119,36843,674,27015,039,0002,005,0002,306,048
3May 18, 2024 16:1119,38039,266,57315,048,0002,006,0002,289,664
4May 18, 2024 16:1119,38549,871,51115,052,0002,007,0002,289,664
5May 18, 2024 16:1119,40946,515,08816,076,0001,004,0002,289,664
6May 18, 2024 16:1119,47641,135,67315,123,0002,016,0002,289,664
7May 18, 2024 16:1120,09847,073,54616,646,0001,040,0002,289,664
8May 18, 2024 16:1120,13850,753,58816,679,0001,042,0002,289,664
9May 18, 2024 16:1120,14947,630,13816,688,0001,043,0002,310,144
10May 18, 2024 16:1120,59691,391,39518,124,16302,285,568
11May 18, 2024 16:1120,72082,044,75418,233,43102,289,664
12May 18, 2024 16:1120,73791,106,73418,248,78402,281,472