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 07:01Kenneth MaplesKenneth MaplesScore: 52,414Success
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 07:0147,226121,778,20441,558,70502,265,088
2Dec 23, 2023 07:0147,266120,694,22541,594,12302,252,800
3Dec 23, 2023 07:0147,270109,540,38441,597,72802,265,088
4Dec 23, 2023 07:0152,36669,823,76144,079,0002,003,0002,281,472
5Dec 23, 2023 07:0152,40678,554,71344,112,0002,005,0002,289,664
6Dec 23, 2023 07:0152,40872,222,50845,117,0001,002,0002,289,664
7Dec 23, 2023 07:0152,41467,893,53144,119,0002,005,0002,281,472
8Dec 23, 2023 07:0152,41665,411,95444,121,0002,005,0002,273,280
9Dec 23, 2023 07:0152,44068,325,55244,141,0002,006,0002,277,376
10Dec 23, 2023 07:0152,44371,032,63644,144,0002,006,0002,289,664
11Dec 23, 2023 07:0152,50069,848,80745,196,0001,004,0002,379,776
12Dec 23, 2023 07:0152,63469,636,23745,312,0001,006,0002,281,472