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 listOct 5, 2023 14:40matsuoka-601matsuoka-601Score: 25,711Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2023 14:4025,50946,670,17221,428,0001,020,0002,424,832
2Oct 5, 2023 14:4825,52049,600,60621,438,0001,020,0002,510,848
3Oct 5, 2023 14:4825,56343,776,95122,495,00002,310,144
4Oct 5, 2023 14:4825,58050,301,35521,487,0001,023,0002,408,448
5Oct 5, 2023 14:4825,60742,311,19721,510,0001,024,0002,506,752
6Oct 5, 2023 14:4025,61144,670,12121,514,0001,024,0002,392,064
7Oct 5, 2023 14:4825,61649,230,53021,518,0001,024,0002,445,312
8Oct 5, 2023 14:4025,63346,110,29922,557,00002,510,848
9Oct 5, 2023 14:4825,63945,482,92421,537,0001,025,0002,355,200
10Oct 5, 2023 14:4025,64244,265,57521,540,0001,025,0002,510,848
11Oct 5, 2023 14:4025,65046,788,52221,546,0001,026,0002,297,856
12Oct 5, 2023 14:4025,69447,703,16521,584,0001,027,0002,506,752
13Oct 5, 2023 14:4025,71149,304,87821,598,0001,028,0002,404,352
14Oct 5, 2023 14:4025,71445,407,20520,571,0002,057,0002,473,984
15Oct 5, 2023 14:4825,76951,271,01420,616,0002,061,0002,506,752
16Oct 5, 2023 14:4025,78252,285,81122,688,00002,502,656
17Oct 5, 2023 14:4825,79554,128,17121,669,0001,031,0002,400,256
18Oct 5, 2023 14:4025,99293,963,01322,873,38302,297,856
19Oct 5, 2023 14:4826,00749,352,05420,896,0001,990,0002,269,184
20Oct 5, 2023 14:4826,02399,165,56922,900,00002,314,240
21Oct 5, 2023 14:4026,10666,918,61422,972,93102,195,456
22Oct 5, 2023 14:4826,13795,148,23223,000,84402,281,472
23Oct 5, 2023 14:4826,15486,135,34223,015,36002,199,552
24Oct 5, 2023 14:4026,16281,648,40723,022,71502,285,568