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 listDec 1, 2022 06:40apuxbtapuxbtScore: 30,817Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:4030,73357,208,14426,044,0001,001,0002,265,088
2Dec 1, 2022 06:4030,73653,217,90026,047,0001,001,0002,383,872
3Dec 1, 2022 06:4030,74456,762,38125,051,0002,004,0002,265,088
4Dec 1, 2022 06:4030,74550,820,96825,052,0002,004,0002,387,968
5Dec 1, 2022 06:4030,78452,904,41025,084,0002,006,0002,387,968
6Dec 1, 2022 06:4030,81454,986,72826,112,0001,004,0002,383,872
7Dec 1, 2022 06:4030,81751,853,42126,115,0001,004,0002,260,992
8Dec 1, 2022 06:4030,95549,025,08725,223,0002,017,0002,265,088
9Dec 1, 2022 06:4031,09951,077,27925,340,0002,027,0002,387,968
10Dec 1, 2022 06:4031,159102,856,06627,420,04602,240,512
11Dec 1, 2022 06:4031,313116,093,17327,555,17402,228,224
12Dec 1, 2022 06:4031,363103,457,60127,599,07102,228,224