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 20:44Ivan BessonovIvan BessonovScore: 31,047Success
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 20:4430,81550,003,85425,109,0002,008,0002,281,472
2May 16, 2024 20:4430,89457,655,68625,174,0002,013,0002,289,664
3May 16, 2024 20:4430,92449,998,87025,198,0002,015,0002,289,664
4May 16, 2024 20:4430,98556,060,20226,258,0001,009,0002,269,184
5May 16, 2024 20:4431,01148,121,61925,269,0002,021,0002,269,184
6May 16, 2024 20:4431,03352,430,98226,298,0001,011,0002,277,376
7May 16, 2024 20:4431,04750,417,60626,310,0001,011,0002,289,664
8May 16, 2024 20:4431,11550,166,97726,367,0001,014,0002,289,664
9May 16, 2024 20:4431,11850,232,63827,384,00002,273,280
10May 16, 2024 20:4442,049107,896,51837,003,47602,252,800
11May 16, 2024 20:4442,09395,950,99737,041,43402,256,896
12May 16, 2024 20:4442,13791,358,45437,080,18002,265,088