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 16, 2024 21:37Ivan BessonovIvan BessonovScore: 30,767Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:3727,19799,982,14523,932,96202,256,896
2May 16, 2024 21:3727,32197,982,34524,042,79802,260,992
3May 16, 2024 21:3727,38375,773,17324,096,97302,252,800
4May 16, 2024 21:3730,67748,213,88425,997,000999,0002,269,184
5May 16, 2024 21:3730,74054,895,36026,050,0001,001,0002,289,664
6May 16, 2024 21:3730,75648,868,58926,063,0001,002,0002,363,392
7May 16, 2024 21:3730,76752,260,97825,070,0002,005,0002,269,184
8May 16, 2024 21:3730,76752,849,59525,070,0002,005,0002,289,664
9May 16, 2024 21:3730,79052,151,96725,088,0002,007,0002,269,184
10May 16, 2024 21:3730,79747,582,52025,094,0002,007,0002,273,280
11May 16, 2024 21:3730,80651,100,73225,101,0002,008,0002,289,664
12May 16, 2024 21:3730,81948,004,81725,112,0002,009,0002,289,664