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 02:30zielajzielajScore: 8,457Success
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 02:308,40220,390,2247,394,00002,531,328
2Dec 13, 2024 02:308,43428,151,7857,422,00002,531,328
3Dec 13, 2024 02:308,43825,349,6767,425,00002,306,048
4Dec 13, 2024 02:308,44722,371,9767,433,00002,404,352
5Dec 13, 2024 02:308,45721,482,1467,442,00002,531,328
6Dec 13, 2024 02:308,46824,531,2377,452,00002,269,184
7Dec 13, 2024 02:308,49127,008,5137,472,00002,527,232
8Dec 13, 2024 02:308,55923,811,4837,532,00002,531,328
9Dec 13, 2024 02:309,00224,181,5385,942,0001,980,0002,301,952