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 13, 2024 03:08zielajzielajScore: 8,332Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 03:088,19822,446,6076,184,0001,030,0002,531,328
2Dec 13, 2024 02:538,23822,389,9666,214,0001,035,0002,269,184
3Dec 13, 2024 02:538,26629,124,4186,235,0001,039,0002,306,048
4Dec 13, 2024 03:088,29220,944,8517,297,00002,314,240
5Dec 13, 2024 02:538,29522,449,6607,300,00002,310,144
6Dec 13, 2024 03:088,30222,639,4106,263,0001,043,0002,314,240
7Dec 13, 2024 03:088,30823,489,3136,267,0001,044,0002,269,184
8Dec 13, 2024 02:538,31424,811,1366,271,0001,045,0002,314,240
9Dec 13, 2024 02:538,32821,162,3387,329,00002,408,448
10Dec 13, 2024 03:088,33223,437,2396,285,0001,047,0002,314,240
11Dec 13, 2024 03:088,34026,748,4826,291,0001,048,0002,269,184
12Dec 13, 2024 02:538,35323,200,7376,301,0001,050,0002,531,328
13Dec 13, 2024 03:088,35323,036,9697,351,00002,310,144
14Dec 13, 2024 02:538,36123,215,7567,358,00002,531,328
15Dec 13, 2024 03:088,37223,133,5627,367,00002,314,240
16Dec 13, 2024 03:088,48125,722,0346,397,0001,066,0002,531,328
17Dec 13, 2024 02:538,48322,777,4276,399,0001,066,0002,306,048
18Dec 13, 2024 02:538,76622,371,0906,612,0001,102,0002,531,328