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 29, 2024 15:44zielajzielajScore: 3,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 15:443,56315,542,2281,045,0002,090,0002,453,504
2Dec 29, 2024 15:443,59319,603,9931,054,0002,108,0002,363,392
3Dec 29, 2024 15:443,59316,629,0901,054,0002,108,0002,293,760
4Dec 29, 2024 15:443,60516,506,5541,057,0002,115,0002,453,504
5Dec 29, 2024 15:443,66923,942,2951,076,0002,153,0002,293,760
6Dec 29, 2024 15:443,68918,795,5781,082,0002,164,0002,461,696
7Dec 29, 2024 15:443,69017,606,0441,082,0002,165,0002,457,600
8Dec 29, 2024 15:443,74116,330,7231,097,0002,195,0002,461,696
9Dec 29, 2024 15:444,49319,039,4911,977,0001,977,0002,531,328