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 17:17Ivan BessonovIvan BessonovScore: 17,575Success
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 17:1717,47536,623,74614,353,0001,025,0002,289,664
2May 18, 2024 17:1617,47540,673,29614,353,0001,025,0002,293,760
3May 18, 2024 17:1617,47844,965,80814,356,0001,025,0002,289,664
4May 18, 2024 17:1617,50034,099,95314,374,0001,026,0002,289,664
5May 18, 2024 17:1617,50333,090,26714,377,0001,026,0002,289,664
6May 18, 2024 17:1717,50638,380,32314,378,0001,027,0002,289,664
7May 18, 2024 17:1617,51632,955,23514,387,0001,027,0002,293,760
8May 18, 2024 17:1717,51736,411,51414,388,0001,027,0002,289,664
9May 18, 2024 17:1617,52036,391,78614,391,0001,027,0002,289,664
10May 18, 2024 17:1617,52840,211,72414,397,0001,028,0002,301,952
11May 18, 2024 17:1717,55137,921,90814,416,0001,029,0002,301,952
12May 18, 2024 17:1717,55238,143,63714,417,0001,029,0002,289,664
13May 18, 2024 17:1717,57542,203,29714,435,0001,031,0002,301,952
14May 18, 2024 17:1717,59832,720,43814,454,0001,032,0002,400,256
15May 18, 2024 17:1717,69134,191,54112,649,0002,919,0002,297,856
16May 18, 2024 17:1618,37335,912,41914,147,0002,021,0002,289,664
17May 18, 2024 17:1718,50174,343,38216,280,84802,289,664
18May 18, 2024 17:1618,51782,975,09116,294,58302,289,664
19May 18, 2024 17:1618,53574,192,24316,311,00802,285,568
20May 18, 2024 17:1718,55186,867,89716,325,20602,285,568
21May 18, 2024 17:1618,56530,257,39214,295,0002,042,0002,301,952
22May 18, 2024 17:1718,62332,863,55014,340,0002,048,0002,301,952
23May 18, 2024 17:1719,28785,453,76816,972,67402,289,664
24May 18, 2024 17:1619,35480,907,07117,031,39502,289,664