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 listMay 19, 2024 08:50Ivan BessonovIvan BessonovScore: 17,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:5016,93032,269,93212,912,0001,986,0002,289,664
2May 19, 2024 08:5016,94331,472,02612,922,0001,988,0002,441,216
3May 19, 2024 08:5016,94430,920,72212,923,0001,988,0002,338,816
4May 19, 2024 08:5016,94743,351,46013,919,000994,0002,289,664
5May 19, 2024 08:5016,94829,661,07912,926,0001,988,0002,334,720
6May 19, 2024 08:5016,96936,600,80712,942,0001,991,0002,289,664
7May 19, 2024 08:5017,01339,640,79912,975,0001,996,0002,289,664
8May 19, 2024 08:5017,21442,372,08713,129,0002,019,0002,326,528
9May 19, 2024 08:5017,50738,704,67614,379,0001,027,0002,342,912
10May 19, 2024 08:5017,67485,042,95715,552,86602,183,168
11May 19, 2024 08:5017,69182,963,45715,568,22102,183,168
12May 19, 2024 08:5018,29487,585,80316,098,52702,187,264