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 19, 2024 13:02Huy Duc LeHuy Duc LeScore: 32,876Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 13:0232,64953,193,25827,705,0001,026,0002,289,664
2Feb 19, 2024 13:0232,79154,697,39627,861,000995,0002,482,176
3Feb 19, 2024 13:0232,82354,882,16827,888,000996,0002,285,568
4Feb 19, 2024 13:0232,83453,872,19528,894,00002,482,176
5Feb 19, 2024 13:0232,84455,752,23527,907,000996,0002,490,368
6Feb 19, 2024 13:0232,85857,972,87826,921,0001,994,0002,494,464
7Feb 19, 2024 13:0232,87656,692,04226,936,0001,995,0002,289,664
8Feb 19, 2024 13:0232,96159,355,48827,006,0002,000,0002,318,336
9Feb 19, 2024 13:0232,98157,823,27027,022,0002,001,0002,289,664
10Feb 19, 2024 13:0233,494101,257,23729,474,47002,215,936
11Feb 19, 2024 13:0233,512111,236,20329,490,12802,215,936
12Feb 19, 2024 13:0233,58595,470,48229,554,51002,207,744