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 listAug 11, 2023 07:53parsersmailparsersmailScore: 19,143,578Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2023 07:2619,047,82416,818,573,56616,762,085,16902,224,128
2Jul 27, 2023 07:2619,101,07516,873,641,52316,808,946,39202,215,936
3Jul 27, 2023 07:2619,106,19416,877,441,33116,813,450,98302,215,936
4Aug 11, 2023 07:5319,143,57816,907,009,80916,846,348,20002,224,128
5Aug 11, 2023 07:5319,212,38716,975,047,80316,906,900,92802,207,744
6Aug 11, 2023 07:5319,346,47817,092,836,47417,024,900,80302,207,744