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 08:06Huy Duc LeHuy Duc LeScore: 30,436Success
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 08:0630,12284,250,70126,507,25502,220,032
2Feb 20, 2024 08:0630,21793,688,11226,591,29402,224,128
3Feb 20, 2024 08:0630,31056,069,27826,673,00002,482,176
4Feb 20, 2024 08:0630,33279,568,54426,692,11402,256,896
5Feb 20, 2024 08:0630,39853,583,34825,722,0001,028,0002,289,664
6Feb 20, 2024 08:0630,41051,151,51226,761,00002,289,664
7Feb 20, 2024 08:0630,43654,002,64026,784,00002,490,368
8Feb 20, 2024 08:0630,56458,412,97324,904,0001,992,0002,289,664
9Feb 20, 2024 08:0630,57254,610,18125,907,000996,0002,289,664
10Feb 20, 2024 08:0630,57253,882,44925,907,000996,0002,289,664
11Feb 20, 2024 08:0630,63949,164,52724,965,0001,997,0002,289,664
12Feb 20, 2024 08:0630,64151,689,29724,967,0001,997,0002,490,368