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 16, 2024 21:33Ivan BessonovIvan BessonovScore: 30,655Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:3327,11895,519,54523,863,41002,260,992
2May 16, 2024 21:3327,230101,869,61623,962,34202,252,800
3May 16, 2024 21:3327,25384,341,09923,982,98302,392,064
4May 16, 2024 21:3330,56651,640,03624,906,0001,992,0002,281,472
5May 16, 2024 21:3330,60954,577,70024,941,0001,995,0002,273,280
6May 16, 2024 21:3330,65352,349,29525,976,000999,0002,269,184
7May 16, 2024 21:3330,65547,740,27825,977,000999,0002,289,664
8May 16, 2024 21:3330,68349,946,84625,001,0002,000,0002,273,280
9May 16, 2024 21:3330,70655,181,81525,020,0002,001,0002,265,088
10May 16, 2024 21:3330,73651,036,19325,045,0002,003,0002,277,376
11May 16, 2024 21:3330,80752,131,19526,106,0001,004,0002,273,280
12May 16, 2024 21:3330,81151,292,98925,106,0002,008,0002,273,280