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 listJul 20, 2023 10:34matsuoka-601matsuoka-601Score: 51,018Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 10:3451,00669,056,71740,896,0003,989,0002,289,664
2Jul 20, 2023 10:3451,00871,106,87941,895,0002,992,0002,469,888
3Jul 20, 2023 10:3451,00975,458,52741,896,0002,992,0002,461,696
4Jul 20, 2023 10:3451,01173,039,14240,900,0003,990,0002,465,792
5Jul 20, 2023 10:3451,01171,111,37240,900,0003,990,0002,469,888
6Jul 20, 2023 10:3451,01673,409,66840,904,0003,990,0002,318,336
7Jul 20, 2023 10:3451,01878,261,93942,901,0001,995,0002,486,272
8Jul 20, 2023 10:3451,13167,852,06840,996,0003,999,0002,289,664
9Jul 20, 2023 10:3451,14366,915,07241,006,0004,000,0002,465,792
10Jul 20, 2023 10:3451,918105,522,11145,687,50902,179,072
11Jul 20, 2023 10:3451,942100,229,11745,709,06102,191,360
12Jul 20, 2023 10:3451,978115,763,66845,741,06002,179,072