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 21, 2024 13:37Ivan BessonovIvan BessonovScore: 15,817Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 13:3715,40586,368,68313,556,22502,199,552
2May 21, 2024 13:3715,42484,861,97013,573,47502,199,552
3May 21, 2024 13:3715,44859,388,60313,593,93002,195,456
4May 21, 2024 13:3715,76743,096,20311,893,0001,982,0002,347,008
5May 21, 2024 13:3715,79542,635,45012,908,000992,0002,289,664
6May 21, 2024 13:3715,80140,615,59412,912,000993,0002,445,312
7May 21, 2024 13:3715,80843,989,36311,924,0001,987,0002,289,664
8May 21, 2024 13:3715,80929,953,53111,925,0001,987,0002,289,664
9May 21, 2024 13:3715,80938,903,11811,925,0001,987,0002,289,664
10May 21, 2024 13:3715,81137,858,89611,927,0001,987,0002,342,912
11May 21, 2024 13:3715,81530,596,46812,923,000994,0002,351,104
12May 21, 2024 13:3715,81528,948,97111,929,0001,988,0002,347,008
13May 21, 2024 13:3715,81734,127,29711,931,0001,988,0002,289,664
14May 21, 2024 13:3715,82431,299,39811,936,0001,989,0002,289,664
15May 21, 2024 13:3715,85531,313,32311,959,0001,993,0002,289,664
16May 21, 2024 13:3715,88032,898,63211,978,0001,996,0002,342,912
17May 21, 2024 13:3715,90139,607,21512,994,000999,0002,289,664
18May 21, 2024 13:3715,90336,675,49911,996,0001,999,0002,334,720
19May 21, 2024 13:3715,91587,013,08314,005,42802,207,744
20May 21, 2024 13:3715,92840,617,57212,015,0002,002,0002,351,104
21May 21, 2024 13:3715,97881,039,44614,060,46702,199,552
22May 21, 2024 13:3716,04162,628,30514,116,00402,199,552
23May 21, 2024 13:3716,47331,569,66813,461,0001,035,0002,351,104
24May 21, 2024 13:3716,49934,329,12614,519,00002,342,912