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,651Success
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,92377,175,05915,772,67802,260,992
2Feb 15, 2024 12:4317,94090,262,72415,786,87502,260,992
3Feb 15, 2024 12:4318,09177,898,90615,919,74802,260,992
4Feb 15, 2024 12:4321,54448,076,51217,962,000997,0002,281,472
5Feb 15, 2024 12:4321,61343,583,63317,017,0002,002,0002,281,472
6Feb 15, 2024 12:4321,61941,935,19317,023,0002,002,0002,510,848
7Feb 15, 2024 12:4321,65139,809,36017,048,0002,005,0002,281,472
8Feb 15, 2024 12:4321,67339,551,69017,065,0002,007,0002,277,376
9Feb 15, 2024 12:4321,68841,949,27217,076,0002,009,0002,281,472
10Feb 15, 2024 12:4321,69144,299,35617,079,0002,009,0002,514,944
11Feb 15, 2024 12:4321,70340,921,67618,094,0001,005,0002,416,640
12Feb 15, 2024 12:4321,71345,240,43517,096,0002,011,0002,281,472