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 20, 2024 07:48Huy Duc LeHuy Duc LeScore: 31,709Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2024 07:4831,52060,114,69526,711,0001,027,0002,498,560
2Feb 20, 2024 07:4831,55055,761,09126,736,0001,028,0002,289,664
3Feb 20, 2024 07:4831,56654,780,38826,750,0001,028,0002,289,664
4Feb 20, 2024 07:4831,66656,000,42025,876,0001,990,0002,289,664
5Feb 20, 2024 07:4831,69253,935,70525,897,0001,992,0002,490,368
6Feb 20, 2024 07:4831,70754,433,51825,909,0001,993,0002,289,664
7Feb 20, 2024 07:4831,70954,732,27126,908,000996,0002,502,656
8Feb 20, 2024 07:4831,70953,517,72826,908,000996,0002,289,664
9Feb 20, 2024 07:4831,83551,595,86826,014,0002,001,0002,289,664
10Feb 20, 2024 07:4832,83490,396,21428,894,33602,220,032
11Feb 20, 2024 07:4832,86699,594,53128,922,48402,211,840
12Feb 20, 2024 07:4832,94588,279,29728,991,76002,220,032