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 4, 2023 12:26Robert BurkeRobert BurkeScore: 21,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:2618,17568,167,84815,993,80302,232,320
2Oct 4, 2023 12:2618,23157,497,31216,042,97002,240,512
3Oct 4, 2023 12:2618,28471,524,37416,090,31102,228,224
4Oct 4, 2023 12:2621,55041,342,35617,966,000998,0002,387,968
5Oct 4, 2023 12:2621,59441,496,15218,003,0001,000,0002,490,368
6Oct 4, 2023 12:2621,61046,945,27518,017,0001,000,0002,273,280
7Oct 4, 2023 12:2621,69334,838,99117,081,0002,009,0002,396,160
8Oct 4, 2023 12:2621,69540,120,44318,088,0001,004,0002,273,280
9Oct 4, 2023 12:2621,74442,307,04618,128,0001,007,0002,383,872
10Oct 4, 2023 12:2621,74943,911,12818,132,0001,007,0002,400,256
11Oct 4, 2023 12:2621,74940,374,73518,132,0001,007,0002,392,064
12Oct 4, 2023 12:2621,86439,971,58719,240,00002,392,064