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 18, 2024 09:31Ryan Chung Yi ShengRyan Chung Yi ShengScore: 48,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 18, 2024 09:3148,88169,518,64042,015,0001,000,0002,281,472
2Feb 18, 2024 09:3148,88267,790,63641,016,0002,000,0002,281,472
3Feb 18, 2024 09:3148,90873,607,93141,038,0002,001,0002,523,136
4Feb 18, 2024 09:3148,92265,610,81240,048,0003,003,0002,281,472
5Feb 18, 2024 09:3148,93475,024,15341,060,0002,002,0002,277,376
6Feb 18, 2024 09:3148,98574,451,75542,105,0001,002,0002,269,184
7Feb 18, 2024 09:3148,99266,902,82542,111,0001,002,0002,281,472
8Feb 18, 2024 09:3148,99571,045,69641,111,0002,005,0002,281,472
9Feb 18, 2024 09:3149,15570,310,95140,239,0003,017,0002,281,472
10Feb 18, 2024 09:3150,835105,784,08744,734,68402,252,800
11Feb 18, 2024 09:3151,147105,216,46845,008,93002,248,704
12Feb 18, 2024 09:3151,179109,933,29545,037,59702,252,800