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 28, 2022 02:40Robert BurkeRobert BurkeScore: 27,182Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 02:4026,70483,715,96923,499,31802,236,416
2Dec 28, 2022 02:4026,71781,482,46323,510,74102,224,128
3Dec 28, 2022 02:4026,80175,435,31923,584,56702,236,416
4Dec 28, 2022 02:4026,98451,137,23123,746,00002,273,280
5Dec 28, 2022 02:4027,00653,844,31722,732,0001,033,0002,392,064
6Dec 28, 2022 02:4027,16648,876,45522,910,000996,0002,392,064
7Dec 28, 2022 02:4027,18244,831,55621,927,0001,993,0002,535,424
8Dec 28, 2022 02:4027,19448,455,11121,937,0001,994,0002,387,968
9Dec 28, 2022 02:4027,19945,405,77521,941,0001,994,0002,437,120
10Dec 28, 2022 02:4027,25244,322,13422,983,000999,0002,535,424
11Dec 28, 2022 02:4027,30152,081,75722,023,0002,002,0002,273,280
12Dec 28, 2022 02:4027,40947,266,22821,105,0003,015,0002,387,968