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 listJan 30, 2025 19:22andrei445andrei445Score: 1,987,125Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 19:221,975,5741,761,396,6891,737,506,000999,0002,281,472
2Jan 30, 2025 19:221,978,7271,767,155,1331,740,281,000999,0002,482,176
3Jan 30, 2025 19:221,984,3641,773,982,9951,743,242,0002,998,0002,314,240
4Jan 30, 2025 19:221,986,6351,781,499,0741,745,241,0002,998,0002,281,472
5Jan 30, 2025 19:221,987,1251,770,243,1361,747,671,000999,0002,486,272
6Jan 30, 2025 19:221,994,6681,783,446,4321,752,310,0002,998,0002,478,080
7Jan 30, 2025 19:221,996,3801,783,423,0141,754,816,0001,998,0002,281,472
8Jan 30, 2025 19:221,999,4501,792,343,5531,757,517,0001,999,0002,293,760
9Jan 30, 2025 19:222,006,8721,796,479,7141,764,049,0001,998,0002,293,760