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 24, 2023 01:22Kenneth MaplesKenneth MaplesScore: 26,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:2226,83144,156,20022,585,0001,026,0002,265,088
2Dec 24, 2023 01:2226,83951,238,02822,592,0001,026,0002,265,088
3Dec 24, 2023 01:2226,84144,267,83723,620,00002,506,752
4Dec 24, 2023 01:2226,84447,580,31422,596,0001,027,0002,265,088
5Dec 24, 2023 01:2226,85047,565,18122,601,0001,027,0002,265,088
6Dec 24, 2023 01:2226,85746,933,30822,607,0001,027,0002,392,064
7Dec 24, 2023 01:2226,88256,053,81722,628,0001,028,0002,387,968
8Dec 24, 2023 01:2226,88349,361,37523,657,00002,387,968
9Dec 24, 2023 01:2227,03255,900,57822,754,0001,034,0002,387,968
10Dec 24, 2023 01:2227,81289,151,54424,474,37902,240,512
11Dec 24, 2023 01:2227,82584,852,50124,485,73702,236,416
12Dec 24, 2023 01:2227,84383,477,38324,502,07802,224,128