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 05:54apuxbtapuxbtScore: 35,748Success
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 05:5435,57563,138,61829,287,0002,019,0002,314,240
2Nov 29, 2022 05:5435,57559,838,26529,287,0002,019,0002,277,376
3Nov 29, 2022 05:5435,59752,553,08328,294,0003,031,0002,318,336
4Nov 29, 2022 05:5435,60354,803,97727,289,0004,042,0002,277,376
5Nov 29, 2022 05:5435,63258,290,15229,333,0002,023,0002,314,240
6Nov 29, 2022 05:5435,65857,967,42928,343,0003,036,0002,310,144
7Nov 29, 2022 05:5435,74854,701,70929,429,0002,029,0002,318,336
8Nov 29, 2022 05:5435,87354,328,24628,513,0003,055,0002,277,376
9Nov 29, 2022 05:5435,88661,434,55429,543,0002,037,0002,310,144
10Nov 29, 2022 05:5436,64094,059,54632,243,47302,301,952
11Nov 29, 2022 05:5436,712106,784,54432,306,35402,297,856
12Nov 29, 2022 05:5436,79696,288,63432,380,26202,174,976