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 21:29zielajzielajScore: 7,423Success
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 21:257,38526,190,3626,499,00002,510,848
2Dec 13, 2024 21:257,39523,538,2646,508,00002,506,752
3Dec 13, 2024 21:257,39820,163,0855,425,0001,085,0002,351,104
4Dec 13, 2024 21:297,39922,451,9235,426,0001,085,0002,510,848
5Dec 13, 2024 21:257,40032,299,5376,512,00002,531,328
6Dec 13, 2024 21:257,42222,014,9736,531,00002,269,184
7Dec 13, 2024 21:257,42323,649,2076,532,00002,531,328
8Dec 13, 2024 21:297,44223,213,8645,458,0001,091,0002,531,328
9Dec 13, 2024 21:297,45220,314,8636,558,00002,269,184
10Dec 13, 2024 21:257,50821,954,2066,607,00002,506,752
11Dec 13, 2024 21:257,52721,853,6945,520,0001,104,0002,506,752
12Dec 13, 2024 21:257,53129,302,0985,523,0001,104,0002,269,184