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 15, 2024 17:15Bernard TeoBernard TeoScore: 50,645Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 17:1646,076114,970,05640,546,91902,236,416
2Feb 15, 2024 17:1448,419116,481,26842,608,69402,232,320
3Feb 15, 2024 17:1650,169102,686,32544,148,80202,232,320
4Feb 15, 2024 17:1450,348130,220,56444,306,13802,232,320
5Feb 15, 2024 17:1650,378123,469,79344,332,69902,232,320
6Feb 15, 2024 17:1750,398105,445,78844,349,83502,236,416
7Feb 15, 2024 17:1750,643111,381,56544,566,00202,232,320
8Feb 15, 2024 17:1750,645111,249,26044,567,23402,224,128
9Feb 15, 2024 17:1751,312107,079,26445,154,53502,232,320
10Feb 15, 2024 17:1751,391125,243,84945,223,85702,236,416
11Feb 15, 2024 17:1455,335110,911,46048,694,95502,256,896
12Feb 15, 2024 17:1756,047131,783,26949,321,19702,240,512
13Feb 15, 2024 17:1556,148143,102,27249,410,28402,240,512
14Feb 15, 2024 17:1559,000112,060,76051,920,01002,236,416
15Feb 15, 2024 17:1561,657136,665,77954,257,77502,236,416