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 30, 2024 22:07zielajzielajScore: 3,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 22:073,50222,774,7012,055,0001,027,0002,502,656
2Dec 30, 2024 22:073,56318,547,3201,045,0002,090,0002,502,656
3Dec 30, 2024 22:073,56316,738,7521,045,0002,090,0002,506,752
4Dec 30, 2024 22:073,59820,146,4911,055,0002,111,0002,506,752
5Dec 30, 2024 22:073,60517,012,0941,057,0002,115,0002,281,472
6Dec 30, 2024 22:073,60718,195,2442,116,0001,058,0002,506,752
7Dec 30, 2024 22:073,60715,670,7281,058,0002,116,0002,506,752
8Dec 30, 2024 22:073,70221,018,1841,086,0002,172,0002,535,424
9Dec 30, 2024 22:073,72318,686,4731,092,0002,184,0002,506,752