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 listDec 27, 2022 12:18Robert BurkeRobert BurkeScore: 53,878Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2022 12:1850,652120,502,38044,573,42902,232,320
2Dec 27, 2022 12:1850,690100,347,33444,607,45702,228,224
3Dec 27, 2022 12:1850,82695,686,06944,726,55302,224,128
4Dec 27, 2022 12:1853,65573,498,65946,212,0001,004,0002,392,064
5Dec 27, 2022 12:1853,83367,529,70247,373,00002,273,280
6Dec 27, 2022 12:1853,84571,411,08346,376,0001,008,0002,400,256
7Dec 27, 2022 12:1853,87872,011,79546,405,0001,008,0002,392,064
8Dec 27, 2022 12:1853,95069,925,74046,466,0001,010,0002,392,064
9Dec 27, 2022 12:1853,99878,442,33547,518,00002,273,280
10Dec 27, 2022 12:1854,01867,892,48347,536,00002,273,280
11Dec 27, 2022 12:1854,07771,137,65747,588,00002,392,064
12Dec 27, 2022 12:1854,10969,992,55746,603,0001,013,0002,449,408