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 20, 2025 16:28wainCGPwainCGPScore: 12,544,806Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2025 16:2812,462,74410,995,557,03110,963,217,0003,998,0002,273,280
2Feb 20, 2025 16:2812,472,79411,004,022,19510,972,061,0003,998,0002,277,376
3Feb 20, 2025 16:2812,477,69811,007,947,11410,978,375,0001,999,0002,465,792
4Feb 20, 2025 16:2812,518,79411,049,817,36011,013,541,0002,998,0002,469,888
5Feb 20, 2025 16:2812,544,80611,074,815,08611,035,431,0003,998,0002,289,664
6Feb 20, 2025 16:2812,561,00811,079,906,45611,050,689,0002,998,0002,351,104
7Feb 20, 2025 16:2812,565,06911,086,355,05411,054,263,0002,998,0002,465,792
8Feb 20, 2025 16:2812,566,68411,089,941,69511,054,684,0003,998,0002,289,664
9Feb 20, 2025 16:2812,618,07411,135,253,97011,099,907,0003,998,0002,289,664