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 listFeb 15, 2024 12:43Robert BurkeRobert BurkeScore: 21,677Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 12:4317,22981,201,01515,161,65402,269,184
2Feb 15, 2024 12:4317,24872,325,83915,178,58002,252,800
3Feb 15, 2024 12:4317,29082,567,00715,215,56502,256,896
4Feb 15, 2024 12:4321,57840,296,05516,991,0001,998,0002,416,640
5Feb 15, 2024 12:4321,65847,262,95917,053,0002,006,0002,412,544
6Feb 15, 2024 12:4321,67233,175,83818,068,0001,003,0002,277,376
7Feb 15, 2024 12:4321,67741,826,28417,068,0002,008,0002,281,472
8Feb 15, 2024 12:4321,68841,754,72817,076,0002,009,0002,416,640
9Feb 15, 2024 12:4321,71448,166,99117,097,0002,011,0002,412,544
10Feb 15, 2024 12:4321,78143,160,93517,150,0002,017,0002,416,640
11Feb 15, 2024 12:4321,78946,841,00717,156,0002,018,0002,281,472
12Feb 15, 2024 12:4321,78944,081,56117,156,0002,018,0002,281,472