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 23, 2023 06:29matsuoka-601matsuoka-601Score: 32,153Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 06:2931,97493,273,44628,137,44802,195,456
2Jul 23, 2023 06:2932,03399,544,65028,189,36202,191,360
3Jul 23, 2023 06:2932,11952,188,02425,237,0003,028,0002,289,664
4Jul 23, 2023 06:2932,135103,592,16728,278,41102,187,264
5Jul 23, 2023 06:2932,14250,879,79125,255,0003,030,0002,465,792
6Jul 23, 2023 06:2932,14551,764,08124,247,0004,041,0002,465,792
7Jul 23, 2023 06:2932,15353,895,09225,264,0003,031,0002,289,664
8Jul 23, 2023 06:2932,19449,428,00224,284,0004,047,0002,289,664
9Jul 23, 2023 06:2932,34749,052,82024,399,0004,066,0002,297,856
10Jul 23, 2023 06:2932,44550,443,99626,513,0002,039,0002,289,664
11Jul 23, 2023 06:2932,48453,333,37125,524,0003,062,0002,473,984
12Jul 23, 2023 06:2932,61656,942,09226,652,0002,050,0002,289,664