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:20Kenneth MaplesKenneth MaplesScore: 48,916Success
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:2045,464103,814,13540,007,97102,248,704
2Dec 23, 2023 07:2045,504110,587,83940,043,65602,252,800
3Dec 23, 2023 07:2045,544115,617,11940,078,48902,260,992
4Dec 23, 2023 07:2048,80270,918,90940,949,0001,997,0002,289,664
5Dec 23, 2023 07:2048,85864,429,82640,996,0001,999,0002,289,664
6Dec 23, 2023 07:2048,90069,581,34541,031,0002,001,0002,289,664
7Dec 23, 2023 07:2048,91669,099,50541,044,0002,002,0002,289,664
8Dec 23, 2023 07:2048,93666,482,76741,061,0002,003,0002,289,664
9Dec 23, 2023 07:2048,94365,889,24341,067,0002,003,0002,273,280
10Dec 23, 2023 07:2049,02569,379,43441,136,0002,006,0002,289,664
11Dec 23, 2023 07:2049,14771,696,75442,244,0001,005,0002,289,664
12Dec 23, 2023 07:2049,15873,569,70441,247,0002,012,0002,277,376