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:39apuxbtapuxbtScore: 30,390Success
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:3930,30648,787,37926,669,00002,383,872
2Dec 1, 2022 06:3930,30945,285,78426,672,00002,383,872
3Dec 1, 2022 06:3930,33156,979,32225,665,0001,026,0002,387,968
4Dec 1, 2022 06:3930,33651,528,10226,696,00002,502,656
5Dec 1, 2022 06:3930,37452,337,57926,729,00002,387,968
6Dec 1, 2022 06:3930,38454,853,28325,710,0001,028,0002,265,088
7Dec 1, 2022 06:3930,39054,669,36725,715,0001,028,0002,383,872
8Dec 1, 2022 06:3930,42852,603,59626,777,00002,265,088
9Dec 1, 2022 06:3930,56557,887,37625,901,000996,0002,383,872
10Dec 1, 2022 06:3930,84981,883,53727,147,45002,232,320
11Dec 1, 2022 06:3930,91290,364,10827,202,54602,232,320
12Dec 1, 2022 06:3931,08989,596,16227,357,96802,236,416