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 listJun 19, 2021 21:02alex3dalex3dScore: 32,861Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 21:0232,53384,337,92128,629,38802,240,512
2Jun 19, 2021 21:0232,54295,170,61628,637,11902,248,704
3Jun 19, 2021 21:0232,573110,489,44828,664,05902,252,800
4Jun 19, 2021 21:0232,57892,481,68428,668,22002,252,800
5Jun 19, 2021 21:0232,580110,513,04528,670,16202,248,704
6Jun 19, 2021 21:0232,59294,620,83228,681,32102,248,704
7Jun 19, 2021 21:0232,64354,907,04927,701,0001,025,0002,289,664
8Jun 19, 2021 21:0232,69559,233,89627,745,0001,027,0002,289,664
9Jun 19, 2021 21:0232,79459,237,36326,869,0001,990,0002,289,664
10Jun 19, 2021 21:0232,83463,353,02827,898,000996,0002,269,184
11Jun 19, 2021 21:0232,83455,249,07726,902,0001,992,0002,289,664
12Jun 19, 2021 21:0232,84156,036,58326,907,0001,993,0002,289,664
13Jun 19, 2021 21:0232,86158,739,36626,924,0001,994,0002,265,088
14Jun 19, 2021 21:0232,87257,990,54827,930,000997,0002,265,088
15Jun 19, 2021 21:0232,87856,180,69128,933,00002,408,448
16Jun 19, 2021 21:0232,88350,328,53326,942,0001,995,0002,273,280
17Jun 19, 2021 21:0232,89455,760,14526,951,0001,996,0002,289,664
18Jun 19, 2021 21:0232,90157,194,91527,955,000998,0002,273,280
19Jun 19, 2021 21:0232,90350,855,01027,957,000998,0002,269,184
20Jun 19, 2021 21:0232,90856,871,08127,961,000998,0002,527,232
21Jun 19, 2021 21:0232,91151,460,80326,965,0001,997,0002,347,008
22Jun 19, 2021 21:0232,92761,303,65327,977,000999,0002,269,184
23Jun 19, 2021 21:0233,02551,634,48727,058,0002,004,0002,289,664
24Jun 19, 2021 21:0233,05352,418,70027,081,0002,006,0002,289,664