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 14, 2024 11:54Ivan BessonovIvan BessonovScore: 36,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 11:5131,943100,841,07828,109,74202,256,896
2May 14, 2024 11:5131,97093,926,81428,134,02002,260,992
3May 14, 2024 11:5132,032102,444,32528,188,16602,260,992
4May 14, 2024 11:5432,046101,436,19128,200,25902,265,088
5May 14, 2024 11:5432,088112,863,53428,237,73202,252,800
6May 14, 2024 11:5432,22190,453,60028,354,37502,269,184
7May 14, 2024 11:5436,19359,447,92729,860,0001,990,0002,289,664
8May 14, 2024 11:5136,23557,413,30230,891,000996,0002,289,664
9May 14, 2024 11:5436,23958,676,75530,894,000996,0002,289,664
10May 14, 2024 11:5436,24560,970,71029,903,0001,993,0002,289,664
11May 14, 2024 11:5136,25155,237,14630,905,000996,0002,289,664
12May 14, 2024 11:5436,25563,911,14630,907,000997,0002,289,664
13May 14, 2024 11:5136,26358,648,46529,917,0001,994,0002,289,664
14May 14, 2024 11:5136,28156,248,27529,932,0001,995,0002,289,664
15May 14, 2024 11:5136,28957,688,82430,937,000997,0002,289,664
16May 14, 2024 11:5436,30654,917,76230,951,000998,0002,289,664
17May 14, 2024 11:5136,30757,226,92630,952,000998,0002,281,472
18May 14, 2024 11:5136,32458,648,44129,968,0001,997,0002,289,664
19May 14, 2024 11:5136,33254,486,91329,974,0001,998,0002,273,280
20May 14, 2024 11:5436,33558,926,43929,977,0001,998,0002,277,376
21May 14, 2024 11:5136,33961,113,96729,980,0001,998,0002,289,664
22May 14, 2024 11:5436,37059,584,20631,006,0001,000,0002,273,280
23May 14, 2024 11:5436,42863,819,34330,054,0002,003,0002,269,184
24May 14, 2024 11:5436,48955,236,17130,104,0002,006,0002,527,232