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:02apuxbtapuxbtScore: 32,933Success
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:0232,13591,859,15228,278,89202,236,416
2Dec 1, 2022 06:0232,162102,558,24328,302,89002,232,320
3Dec 1, 2022 06:0232,30490,832,61628,427,28402,236,416
4Dec 1, 2022 06:0232,84253,911,03727,905,000996,0002,502,656
5Dec 1, 2022 06:0232,86655,809,14527,925,000997,0002,392,064
6Dec 1, 2022 06:0232,90257,636,22027,956,000998,0002,379,776
7Dec 1, 2022 06:0232,93352,025,36527,982,000999,0002,265,088
8Dec 1, 2022 06:0233,00559,136,53227,041,0002,003,0002,387,968
9Dec 1, 2022 06:0233,01156,052,09927,047,0002,003,0002,387,968
10Dec 1, 2022 06:0233,02857,839,73527,061,0002,004,0002,400,256
11Dec 1, 2022 06:0233,09960,808,86027,119,0002,008,0002,379,776
12Dec 1, 2022 06:0233,18555,272,77928,196,0001,007,0002,387,968