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 5, 2024 08:30Ivan BessonovIvan BessonovScore: 47,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:3047,64866,398,49639,934,0001,996,0002,273,280
2May 5, 2024 08:3047,67267,192,16540,953,000998,0002,289,664
3May 5, 2024 08:3047,68667,869,33739,966,0001,998,0002,269,184
4May 5, 2024 08:3047,79468,300,95940,057,0002,002,0002,527,232
5May 5, 2024 08:3047,80869,615,60541,070,0001,001,0002,277,376
6May 5, 2024 08:3047,83569,957,88240,091,0002,004,0002,289,664
7May 5, 2024 08:3047,88266,271,26741,133,0001,003,0002,289,664
8May 5, 2024 08:3047,94564,977,01640,183,0002,009,0002,371,584
9May 5, 2024 08:3047,95095,882,99342,195,76702,265,088
10May 5, 2024 08:3047,96464,999,38240,199,0002,009,0002,289,664
11May 5, 2024 08:3047,995103,828,54242,235,60402,265,088
12May 5, 2024 08:3048,122105,568,26142,347,67102,265,088