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 31, 2022 16:08Robert BurkeRobert BurkeScore: 39,761Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 16:0837,710105,575,39533,184,40702,277,376
2Jul 31, 2022 16:0837,73087,617,22433,202,46902,256,896
3Jul 31, 2022 16:0837,95682,620,60033,401,15302,269,184
4Jul 31, 2022 16:0839,60960,240,40233,861,000995,0002,535,424
5Jul 31, 2022 16:0839,62265,482,74732,875,0001,992,0002,293,760
6Jul 31, 2022 16:0839,70562,800,34532,944,0001,996,0002,306,048
7Jul 31, 2022 16:0839,76158,022,72532,991,0001,999,0002,301,952
8Jul 31, 2022 16:0839,76560,330,94433,994,000999,0002,535,424
9Jul 31, 2022 16:0839,78360,187,14433,009,0002,000,0002,289,664
10Jul 31, 2022 16:0839,92361,573,20033,125,0002,007,0002,285,568
11Jul 31, 2022 16:0840,12460,158,65034,301,0001,008,0002,273,280
12Jul 31, 2022 16:0840,13663,128,72933,302,0002,018,0002,273,280