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 16, 2024 21:20Ivan BessonovIvan BessonovScore: 30,565Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:2027,29395,051,55424,017,45002,252,800
2May 16, 2024 21:2027,414102,589,51024,124,42802,256,896
3May 16, 2024 21:2027,44297,428,75724,148,57802,252,800
4May 16, 2024 21:2030,53352,604,65024,879,0001,990,0002,289,664
5May 16, 2024 21:2030,55153,324,44724,894,0001,991,0002,289,664
6May 16, 2024 21:2030,56351,611,96025,899,000996,0002,281,472
7May 16, 2024 21:2030,56560,005,51725,901,000996,0002,527,232
8May 16, 2024 21:2030,56759,223,52025,903,000996,0002,273,280
9May 16, 2024 21:2030,63655,114,84924,963,0001,997,0002,269,184
10May 16, 2024 21:2030,77050,960,08326,076,0001,002,0002,289,664
11May 16, 2024 21:2030,77753,551,62325,078,0002,006,0002,289,664
12May 16, 2024 21:2030,81847,819,20025,112,0002,008,0002,289,664