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 18, 2024 05:20Huy Duc LeHuy Duc LeScore: 55,123Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 05:2054,64168,226,65646,081,0002,003,0002,273,280
2Feb 18, 2024 05:2054,67369,006,20046,108,0002,004,0002,289,664
3Feb 18, 2024 05:2054,78873,757,14746,205,0002,008,0002,289,664
4Feb 18, 2024 05:2054,79872,702,35246,213,0002,009,0002,289,664
5Feb 18, 2024 05:2054,98870,445,35948,389,00002,289,664
6Feb 18, 2024 05:2055,06472,811,43447,447,0001,009,0002,289,664
7Feb 18, 2024 05:2055,12374,411,77047,498,0001,010,0002,277,376
8Feb 18, 2024 05:2055,13373,725,64947,507,0001,010,0002,265,088
9Feb 18, 2024 05:2055,13876,177,44348,521,00002,269,184
10Feb 18, 2024 05:2055,831115,323,52349,131,32102,269,184
11Feb 18, 2024 05:2055,931117,303,39849,219,21802,269,184
12Feb 18, 2024 05:2056,204114,053,97049,459,69902,244,608