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 16, 2024 01:38zielajzielajScore: 5,377Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 20:105,29321,249,0943,494,0001,164,0002,531,328
2Dec 15, 2024 20:105,33926,224,6364,698,00002,531,328
3Dec 15, 2024 20:105,35222,652,6244,710,00002,531,328
4Dec 15, 2024 20:105,35619,919,0594,713,00002,510,848
5Dec 15, 2024 20:105,35918,641,6984,716,00002,355,200
6Dec 15, 2024 20:105,37225,292,6294,727,00002,519,040
7Dec 15, 2024 20:105,37722,710,5792,839,0001,893,0002,519,040
8Dec 15, 2024 20:105,37820,847,3294,733,00002,531,328
9Dec 16, 2024 01:385,45720,346,9174,802,00002,531,328
10Dec 16, 2024 01:385,45821,179,4904,803,00002,510,848
11Dec 15, 2024 20:105,58820,260,5423,934,000983,0002,531,328
12Dec 16, 2024 01:385,59822,649,6813,941,000985,0002,269,184