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 12, 2024 16:51Ivan BessonovIvan BessonovScore: 43,875Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:5140,560111,239,93535,692,86502,252,800
2May 12, 2024 16:5140,57193,437,06735,702,39002,256,896
3May 12, 2024 16:5140,700115,202,99535,816,08402,256,896
4May 12, 2024 16:5143,66863,149,47437,417,0001,011,0002,289,664
5May 12, 2024 16:5143,74865,033,67437,485,0001,013,0002,527,232
6May 12, 2024 16:5143,82363,052,36437,550,0001,014,0002,289,664
7May 12, 2024 16:5143,87561,470,13737,594,0001,016,0002,265,088
8May 12, 2024 16:5143,89365,063,62737,610,0001,016,0002,289,664
9May 12, 2024 16:5143,94568,044,65538,672,00002,277,376
10May 12, 2024 16:5143,96164,737,46038,686,00002,289,664
11May 12, 2024 16:5143,99569,931,30637,698,0001,018,0002,289,664
12May 12, 2024 16:5144,18169,875,12436,886,0001,993,0002,281,472