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:13Huy Duc LeHuy Duc LeScore: 30,691Success
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:1330,21492,470,61526,588,71302,220,032
2Feb 20, 2024 03:1330,24485,588,95126,614,53002,224,128
3Feb 20, 2024 03:1330,44994,631,93626,794,80802,220,032
4Feb 20, 2024 03:1330,65955,431,06124,982,0001,998,0002,498,560
5Feb 20, 2024 03:1330,66752,516,84425,988,000999,0002,289,664
6Feb 20, 2024 03:1330,69050,029,06725,007,0002,000,0002,289,664
7Feb 20, 2024 03:1330,69154,079,19825,008,0002,000,0002,490,368
8Feb 20, 2024 03:1330,71048,561,74726,025,0001,000,0002,289,664
9Feb 20, 2024 03:1330,71354,727,20825,025,0002,002,0002,289,664
10Feb 20, 2024 03:1330,74354,493,18925,050,0002,004,0002,289,664
11Feb 20, 2024 03:1330,84752,297,50025,135,0002,010,0002,285,568
12Feb 20, 2024 03:1330,85757,212,75525,143,0002,011,0002,486,272