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:12Huy Duc LeHuy Duc LeScore: 30,842Success
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:1230,25597,806,51226,624,28302,215,936
2Feb 20, 2024 03:1230,32282,521,43626,683,24102,224,128
3Feb 20, 2024 03:1230,496107,115,75926,836,08002,215,936
4Feb 20, 2024 03:1230,66949,429,88624,990,0001,999,0002,289,664
5Feb 20, 2024 03:1230,76550,595,25725,068,0002,005,0002,289,664
6Feb 20, 2024 03:1230,79951,208,52725,096,0002,007,0002,498,560
7Feb 20, 2024 03:1230,84249,509,09826,136,0001,005,0002,289,664
8Feb 20, 2024 03:1230,84558,195,41425,134,0002,010,0002,289,664
9Feb 20, 2024 03:1230,84851,567,34026,141,0001,005,0002,494,464
10Feb 20, 2024 03:1230,85350,741,13525,140,0002,011,0002,289,664
11Feb 20, 2024 03:1230,85950,543,94324,139,0003,017,0002,494,464
12Feb 20, 2024 03:1230,91753,412,09425,192,0002,015,0002,289,664