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 18, 2024 17:40Ivan BessonovIvan BessonovScore: 17,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 17:4017,34433,256,36413,228,0002,035,0002,285,568
2May 18, 2024 17:4017,35328,740,32914,253,0001,018,0002,301,952
3May 18, 2024 17:4017,36332,006,23313,242,0002,037,0002,306,048
4May 18, 2024 17:4017,37239,443,38713,249,0002,038,0002,289,664
5May 18, 2024 17:4017,38137,188,83814,276,0001,019,0002,301,952
6May 18, 2024 17:4017,44433,677,48014,328,0001,023,0002,289,664
7May 18, 2024 17:4017,47231,088,65113,325,0002,050,0002,301,952
8May 18, 2024 17:4018,07737,257,71613,920,0001,988,0002,306,048
9May 18, 2024 17:4018,23181,121,93916,043,47902,285,568
10May 18, 2024 17:4018,29339,210,36214,086,0002,012,0002,310,144
11May 18, 2024 17:4018,30885,990,64216,111,24102,281,472
12May 18, 2024 17:4019,18280,575,69116,880,37902,281,472