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 07:34apuxbtapuxbtScore: 30,592Success
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 07:3430,36049,257,95926,717,00002,265,088
2Dec 1, 2022 07:3430,56152,698,56125,898,000996,0002,265,088
3Dec 1, 2022 07:3430,56357,203,13525,899,000996,0002,379,776
4Dec 1, 2022 07:3430,56955,768,25626,901,00002,265,088
5Dec 1, 2022 07:3430,57552,284,63325,910,000996,0002,265,088
6Dec 1, 2022 07:3430,57653,315,67225,911,000996,0002,383,872
7Dec 1, 2022 07:3430,59253,493,90825,924,000997,0002,375,680
8Dec 1, 2022 07:3430,63857,904,42124,964,0001,997,0002,265,088
9Dec 1, 2022 07:3430,68253,462,63225,000,0002,000,0002,469,888
10Dec 1, 2022 07:3430,74678,402,36127,056,25602,232,320
11Dec 1, 2022 07:3430,79993,531,37927,102,84902,232,320
12Dec 1, 2022 07:3430,80468,751,94527,107,40802,224,128