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 listFeb 18, 2024 11:11Huy Duc LeHuy Duc LeScore: 55,282Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 11:1153,517108,502,73547,094,84502,269,184
2Feb 18, 2024 11:1153,825113,258,98647,365,82002,265,088
3Feb 18, 2024 11:1153,920111,265,76747,449,99702,260,992
4Feb 18, 2024 11:1155,21071,926,62747,573,0001,012,0002,273,280
5Feb 18, 2024 11:1155,27475,374,06048,641,00002,289,664
6Feb 18, 2024 11:1155,27870,285,52747,632,0001,013,0002,289,664
7Feb 18, 2024 11:1155,28274,124,23948,648,00002,289,664
8Feb 18, 2024 11:1155,37078,673,88947,711,0001,015,0002,265,088
9Feb 18, 2024 11:1155,38574,227,61447,724,0001,015,0002,289,664
10Feb 18, 2024 11:1155,54379,863,60746,883,0001,995,0002,289,664
11Feb 18, 2024 11:1155,61083,479,81646,940,0001,997,0002,289,664
12Feb 18, 2024 11:1155,62472,795,42847,951,000998,0002,289,664