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 21, 2023 10:36matsuoka-601matsuoka-601Score: 51,105Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 10:3649,759117,078,71043,787,67502,195,456
2Jul 21, 2023 10:3649,898122,966,00443,909,81202,191,360
3Jul 21, 2023 10:3649,957112,462,98643,962,24602,199,552
4Jul 21, 2023 10:3651,02470,983,06940,910,0003,991,0002,289,664
5Jul 21, 2023 10:3651,03176,918,43240,916,0003,991,0002,461,696
6Jul 21, 2023 10:3651,08869,040,05540,961,0003,996,0002,498,560
7Jul 21, 2023 10:3651,10567,590,25740,975,0003,997,0002,461,696
8Jul 21, 2023 10:3651,11367,822,20040,981,0003,998,0002,465,792
9Jul 21, 2023 10:3651,12567,558,54140,991,0003,999,0002,289,664
10Jul 21, 2023 10:3651,16871,220,30941,026,0004,002,0002,289,664
11Jul 21, 2023 10:3651,17666,242,17342,033,0003,002,0002,289,664
12Jul 21, 2023 10:3651,19471,093,85441,047,0004,004,0002,289,664