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 7, 2024 15:50Ivan BessonovIvan BessonovScore: 48,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 15:5045,030113,328,15839,626,17502,260,992
2May 7, 2024 15:5045,12794,340,52039,711,88402,256,896
3May 7, 2024 15:5045,235118,294,85339,806,89202,252,800
4May 7, 2024 15:5048,34064,840,49941,527,0001,012,0002,269,184
5May 7, 2024 15:5048,42563,499,41141,600,0001,014,0002,289,664
6May 7, 2024 15:5048,50165,112,28241,665,0001,016,0002,387,968
7May 7, 2024 15:5048,52369,001,43641,684,0001,016,0002,281,472
8May 7, 2024 15:5048,53572,995,66942,711,00002,289,664
9May 7, 2024 15:5048,56866,825,98340,753,0001,987,0002,277,376
10May 7, 2024 15:5048,58271,742,31641,735,0001,017,0002,289,664
11May 7, 2024 15:5048,60571,417,54541,754,0001,018,0002,289,664
12May 7, 2024 15:5048,73566,450,22941,890,000997,0002,285,568