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 listOct 2, 2023 19:39apuxbtapuxbtScore: 34,860Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2023 19:3934,34898,863,18930,226,37202,281,472
2Oct 2, 2023 19:3934,494106,859,99430,354,43002,277,376
3Oct 2, 2023 19:3934,68795,756,56930,524,44502,289,664
4Oct 2, 2023 19:3934,72852,387,39829,543,0001,018,0002,306,048
5Oct 2, 2023 19:3934,82056,418,29128,600,0002,042,0002,277,376
6Oct 2, 2023 19:3934,82655,743,51528,604,0002,043,0002,424,832
7Oct 2, 2023 19:3934,86057,660,95127,610,0003,067,0002,297,856
8Oct 2, 2023 19:3934,96357,364,20028,716,0002,051,0002,445,312
9Oct 2, 2023 19:3935,09356,137,58327,894,0002,988,0002,285,568
10Oct 2, 2023 19:3935,11965,291,14028,912,0001,993,0002,441,216
11Oct 2, 2023 19:3935,12363,091,01727,917,0002,991,0002,433,024
12Oct 2, 2023 19:3935,13554,580,40627,927,0002,992,0002,273,280