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 09:08Ivan BessonovIvan BessonovScore: 49,688Success
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 09:0849,25868,071,06242,339,0001,008,0002,289,664
2May 5, 2024 09:0849,42866,771,76842,486,0001,011,0002,277,376
3May 5, 2024 09:0849,43870,192,83942,494,0001,011,0002,269,184
4May 5, 2024 09:0849,52066,373,26442,565,0001,013,0002,392,064
5May 5, 2024 09:0849,556109,208,72643,608,96102,256,896
6May 5, 2024 09:0849,65872,321,43442,683,0001,016,0002,269,184
7May 5, 2024 09:0849,68872,234,14343,725,00002,289,664
8May 5, 2024 09:0849,69473,016,22143,731,00002,269,184
9May 5, 2024 09:0849,713120,956,70443,747,73702,252,800
10May 5, 2024 09:0849,72371,519,88342,739,0001,017,0002,289,664
11May 5, 2024 09:0849,760100,930,44843,788,94202,269,184
12May 5, 2024 09:0849,86071,635,62442,880,000997,0002,265,088