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:39Huy Duc LeHuy Duc LeScore: 29,547Success
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:3929,43150,877,97724,903,000996,0002,482,176
2Feb 20, 2024 03:3929,44250,709,00424,913,000996,0002,289,664
3Feb 20, 2024 03:3929,45553,005,42423,927,0001,993,0002,289,664
4Feb 20, 2024 03:3929,50149,771,26123,964,0001,997,0002,289,664
5Feb 20, 2024 03:3929,51654,746,06823,976,0001,998,0002,490,368
6Feb 20, 2024 03:3929,52594,084,63625,981,72602,224,128
7Feb 20, 2024 03:3929,54749,038,38424,001,0002,000,0002,498,560
8Feb 20, 2024 03:3929,55185,007,43226,004,52302,232,320
9Feb 20, 2024 03:3929,57052,444,75624,021,0002,001,0002,289,664
10Feb 20, 2024 03:3929,60151,281,80925,048,0001,001,0002,289,664
11Feb 20, 2024 03:3929,60990,129,42526,055,95902,211,840
12Feb 20, 2024 03:3929,65851,797,78124,092,0002,007,0002,289,664