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 6, 2023 09:13Robert BurkeRobert BurkeScore: 20,872Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 09:1318,16777,867,99615,986,58502,260,992
2Oct 6, 2023 09:1318,21662,305,36416,029,96402,265,088
3Oct 6, 2023 09:1318,26974,801,67316,076,34502,265,088
4Oct 6, 2023 09:1320,76535,413,03817,258,0001,015,0002,281,472
5Oct 6, 2023 09:1320,76844,433,38818,276,00002,416,640
6Oct 6, 2023 09:1320,78544,172,30318,291,00002,424,832
7Oct 6, 2023 09:1320,87239,348,10418,367,00002,281,472
8Oct 6, 2023 09:1320,90742,334,20518,398,00002,281,472
9Oct 6, 2023 09:1320,94840,305,58817,410,0001,024,0002,416,640
10Oct 6, 2023 09:1320,98143,913,44617,438,0001,025,0002,281,472
11Oct 6, 2023 09:1320,99143,541,57717,446,0001,026,0002,281,472
12Oct 6, 2023 09:1321,05540,850,02017,499,0001,029,0002,281,472