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 listFeb 19, 2024 14:18Huy Duc LeHuy Duc LeScore: 32,811Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 14:1832,54951,031,83328,643,00002,342,912
2Feb 19, 2024 14:1832,58061,406,40428,670,00002,289,664
3Feb 19, 2024 14:1832,61853,568,48328,704,00002,494,464
4Feb 19, 2024 14:1832,63455,060,14527,693,0001,025,0002,289,664
5Feb 19, 2024 14:1832,64551,403,62128,728,00002,330,624
6Feb 19, 2024 14:1832,68955,939,08727,739,0001,027,0002,494,464
7Feb 19, 2024 14:1832,81155,054,05026,883,0001,991,0002,289,664
8Feb 19, 2024 14:1832,812101,141,70728,874,67102,215,936
9Feb 19, 2024 14:1832,81854,883,16627,885,000995,0002,498,560
10Feb 19, 2024 14:1832,830110,603,27428,890,51302,211,840
11Feb 19, 2024 14:1832,84488,617,10828,902,38302,220,032
12Feb 19, 2024 14:1832,92351,904,45526,974,0001,998,0002,281,472