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 18, 2024 20:16Ivan BessonovIvan BessonovScore: 17,023Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:1616,78243,058,30113,714,0001,054,0002,330,624
2May 18, 2024 20:1616,92230,735,37613,899,000992,0002,322,432
3May 18, 2024 20:1616,93542,354,76613,910,000993,0002,289,664
4May 18, 2024 20:1616,93831,987,63112,918,0001,987,0002,289,664
5May 18, 2024 20:1616,94335,703,85412,922,0001,988,0002,289,664
6May 18, 2024 20:1616,94942,142,04612,927,0001,988,0002,318,336
7May 18, 2024 20:1616,95033,059,11212,928,0001,988,0002,289,664
8May 18, 2024 20:1616,95143,355,56713,923,000994,0002,314,240
9May 18, 2024 20:1616,95530,976,66313,926,000994,0002,322,432
10May 18, 2024 20:1616,96330,608,89813,932,000995,0002,322,432
11May 18, 2024 20:1616,99943,031,96912,965,0001,994,0002,289,664
12May 18, 2024 20:1617,00140,680,92912,967,0001,994,0002,289,664
13May 18, 2024 20:1617,02337,652,32112,983,0001,997,0002,318,336
14May 18, 2024 20:1617,05942,000,06514,012,0001,000,0002,289,664
15May 18, 2024 20:1617,06340,389,27014,014,0001,001,0002,326,528
16May 18, 2024 20:1617,567102,767,96315,459,28002,306,048
17May 18, 2024 20:1617,58434,949,84315,474,00002,289,664
18May 18, 2024 20:1617,60792,375,53515,494,29602,306,048
19May 18, 2024 20:1617,69578,243,74215,571,27902,306,048
20May 18, 2024 20:1617,79730,074,34014,617,0001,044,0002,289,664
21May 18, 2024 20:1617,80135,315,59915,665,00002,326,528
22May 18, 2024 20:1618,43780,947,28316,224,29802,183,168
23May 18, 2024 20:1618,55490,317,44816,327,93902,318,336
24May 18, 2024 20:1618,55584,666,90616,328,79602,179,072