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 listMay 13, 2024 09:43Ivan BessonovIvan BessonovScore: 35,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 09:4331,74297,641,86027,933,19202,260,992
2May 13, 2024 09:4331,86890,235,61828,043,68402,260,992
3May 13, 2024 09:4332,06193,724,50528,213,39402,260,992
4May 13, 2024 09:4335,46361,341,75629,194,0002,013,0002,289,664
5May 13, 2024 09:4335,47656,422,99729,205,0002,014,0002,289,664
6May 13, 2024 09:4335,48352,208,03029,211,0002,014,0002,273,280
7May 13, 2024 09:4335,57655,727,23630,298,0001,009,0002,281,472
8May 13, 2024 09:4335,58951,635,57730,308,0001,010,0002,289,664
9May 13, 2024 09:4335,61053,186,75930,327,0001,010,0002,527,232
10May 13, 2024 09:4335,64452,394,78829,344,0002,023,0002,289,664
11May 13, 2024 09:4335,65253,753,91230,362,0001,012,0002,277,376
12May 13, 2024 09:4335,74254,931,56430,439,0001,014,0002,281,472