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 1, 2022 06:17apuxbtapuxbtScore: 34,017Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:1733,00795,261,09029,046,29902,265,088
2Dec 1, 2022 06:1733,00897,339,84529,047,45402,252,800
3Dec 1, 2022 06:1733,17788,609,01129,195,91802,260,992
4Dec 1, 2022 06:1733,96553,927,72927,897,0001,992,0002,289,664
5Dec 1, 2022 06:1733,96755,121,41927,899,0001,992,0002,289,664
6Dec 1, 2022 06:1733,99251,535,38427,919,0001,994,0002,277,376
7Dec 1, 2022 06:1734,01753,408,47327,940,0001,995,0002,273,280
8Dec 1, 2022 06:1734,04054,862,82027,958,0001,997,0002,265,088
9Dec 1, 2022 06:1734,08151,913,57527,992,0001,999,0002,265,088
10Dec 1, 2022 06:1734,08153,496,46727,992,0001,999,0002,289,664
11Dec 1, 2022 06:1734,10651,606,22828,013,0002,000,0002,265,088
12Dec 1, 2022 06:1734,11451,814,96528,019,0002,001,0002,269,184