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 03:07Huy Duc LeHuy Duc LeScore: 32,053Success
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 03:0731,82998,056,82028,009,13902,228,224
2Feb 20, 2024 03:0731,86296,204,57928,038,83202,228,224
3Feb 20, 2024 03:0731,92557,201,36326,088,0002,006,0002,498,560
4Feb 20, 2024 03:0731,97254,412,31026,126,0002,009,0002,482,176
5Feb 20, 2024 03:0731,98555,485,78427,142,0001,005,0002,289,664
6Feb 20, 2024 03:0731,98896,715,30628,149,20502,224,128
7Feb 20, 2024 03:0732,05354,685,85727,200,0001,007,0002,498,560
8Feb 20, 2024 03:0732,08250,470,13526,216,0002,016,0002,289,664
9Feb 20, 2024 03:0732,08351,292,81826,217,0002,016,0002,498,560
10Feb 20, 2024 03:0732,11652,624,38426,244,0002,018,0002,289,664
11Feb 20, 2024 03:0732,14152,437,67226,264,0002,020,0002,490,368
12Feb 20, 2024 03:0732,16555,895,39626,284,0002,021,0002,289,664