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 23, 2023 06:52Kenneth MaplesKenneth MaplesScore: 63,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 06:5255,234112,257,57148,606,31002,256,896
2Dec 23, 2023 06:5255,578116,878,83748,908,76902,248,704
3Dec 23, 2023 06:5255,583110,024,66248,913,38002,252,800
4Dec 23, 2023 06:5263,55784,637,24053,933,0001,997,0002,289,664
5Dec 23, 2023 06:5263,55877,414,75153,934,0001,997,0002,273,280
6Dec 23, 2023 06:5263,56978,754,46054,943,000998,0002,273,280
7Dec 23, 2023 06:5263,65980,455,34554,020,0002,000,0002,269,184
8Dec 23, 2023 06:5263,69177,982,94355,048,0001,000,0002,289,664
9Dec 23, 2023 06:5263,78683,428,18554,128,0002,004,0002,281,472
10Dec 23, 2023 06:5263,79077,780,56754,131,0002,004,0002,277,376
11Dec 23, 2023 06:5263,82879,739,33454,163,0002,006,0002,289,664
12Dec 23, 2023 06:5264,03177,780,98255,341,0001,006,0002,289,664