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 listNov 29, 2022 07:50apuxbtapuxbtScore: 43,294Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 07:5043,08063,230,29136,913,000997,0002,506,752
2Nov 29, 2022 07:5043,17262,285,45635,992,0001,999,0002,387,968
3Nov 29, 2022 07:5043,26161,622,17937,069,0001,001,0002,392,064
4Nov 29, 2022 07:5043,26961,106,99336,073,0002,004,0002,396,160
5Nov 29, 2022 07:5043,28065,933,74637,084,0001,002,0002,375,680
6Nov 29, 2022 07:5043,29364,298,49836,093,0002,005,0002,265,088
7Nov 29, 2022 07:5043,29470,361,98237,097,0001,002,0002,265,088
8Nov 29, 2022 07:5043,30269,349,99136,101,0002,005,0002,506,752
9Nov 29, 2022 07:5043,40563,969,75237,191,0001,005,0002,265,088
10Nov 29, 2022 07:5045,805101,095,50640,308,41302,240,512
11Nov 29, 2022 07:5046,000112,922,39540,480,21102,236,416
12Nov 29, 2022 07:5046,216102,058,68140,669,91702,240,512