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 6, 2023 09:24Robert BurkeRobert BurkeScore: 19,611Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:2418,00884,808,39415,846,89002,269,184
2Oct 6, 2023 09:2418,16091,155,25415,980,42202,256,896
3Oct 6, 2023 09:2418,20887,026,86016,023,21002,248,704
4Oct 6, 2023 09:2419,56337,787,58915,190,0002,025,0002,416,640
5Oct 6, 2023 09:2419,59951,592,13915,218,0002,029,0002,281,472
6Oct 6, 2023 09:2419,60237,653,41316,236,0001,014,0002,514,944
7Oct 6, 2023 09:2419,61139,201,59816,243,0001,015,0002,281,472
8Oct 6, 2023 09:2419,61931,810,13316,250,0001,015,0002,281,472
9Oct 6, 2023 09:2419,64437,278,99617,287,00002,408,448
10Oct 6, 2023 09:2419,64538,524,27817,288,00002,281,472
11Oct 6, 2023 09:2419,65044,952,72316,275,0001,017,0002,408,448
12Oct 6, 2023 09:2419,71334,476,78516,327,0001,020,0002,281,472