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 24, 2023 01:24Kenneth MaplesKenneth MaplesScore: 26,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:2426,29350,245,43721,126,0002,012,0002,392,064
2Dec 24, 2023 01:2426,31450,071,80122,150,0001,006,0002,392,064
3Dec 24, 2023 01:2426,31752,222,55022,153,0001,006,0002,265,088
4Dec 24, 2023 01:2426,34252,030,13021,166,0002,015,0002,265,088
5Dec 24, 2023 01:2426,36050,202,32421,180,0002,017,0002,392,064
6Dec 24, 2023 01:2426,37447,787,26321,191,0002,018,0002,265,088
7Dec 24, 2023 01:2426,39551,917,62521,209,0002,019,0002,265,088
8Dec 24, 2023 01:2426,45257,654,27523,278,00002,265,088
9Dec 24, 2023 01:2426,46946,085,79821,268,0002,025,0002,265,088
10Dec 24, 2023 01:2426,95395,107,50923,718,61202,232,320
11Dec 24, 2023 01:2426,97892,171,59323,741,02302,236,416
12Dec 24, 2023 01:2427,044105,123,68023,798,59002,232,320