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 16:57apuxbtapuxbtScore: 31,115Success
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 16:5730,87652,673,77725,159,0002,012,0002,383,872
2Dec 1, 2022 16:5730,98647,137,59227,268,00002,265,088
3Dec 1, 2022 16:5731,00748,466,84927,286,00002,265,088
4Dec 1, 2022 16:5731,01655,997,64427,294,00002,387,968
5Dec 1, 2022 16:5731,02450,216,89326,290,0001,011,0002,387,968
6Dec 1, 2022 16:5731,09947,895,42527,367,00002,375,680
7Dec 1, 2022 16:5731,11551,007,30827,381,00002,387,968
8Dec 1, 2022 16:5731,12552,591,57525,362,0002,028,0002,383,872
9Dec 1, 2022 16:5731,13958,687,81226,388,0001,014,0002,265,088
10Dec 1, 2022 16:5731,222101,832,44227,475,13202,240,512
11Dec 1, 2022 16:5731,32592,303,14227,566,04702,232,320
12Dec 1, 2022 16:5731,341102,751,20727,579,85002,232,320