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 listOct 3, 2023 01:14apuxbtapuxbtScore: 30,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 01:1429,94984,247,99126,355,09102,224,128
2Oct 3, 2023 01:1430,00497,229,28226,403,94402,224,128
3Oct 3, 2023 01:1430,00596,122,43526,404,27102,224,128
4Oct 3, 2023 01:1430,38251,308,53225,708,0001,028,0002,502,656
5Oct 3, 2023 01:1430,43551,403,83725,753,0001,030,0002,293,760
6Oct 3, 2023 01:1430,54557,895,40425,885,000995,0002,293,760
7Oct 3, 2023 01:1430,55752,771,80325,895,000995,0002,293,760
8Oct 3, 2023 01:1430,56958,497,29625,905,000996,0002,285,568
9Oct 3, 2023 01:1430,57855,224,10524,916,0001,993,0002,498,560
10Oct 3, 2023 01:1430,60659,030,16324,938,0001,995,0002,293,760
11Oct 3, 2023 01:1430,67448,526,13024,994,0001,999,0002,502,656
12Oct 3, 2023 01:1430,78152,375,06125,081,0002,006,0002,293,760