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 25, 2024 22:27zielajzielajScore: 4,113Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2024 22:254,09820,584,2422,404,0001,202,0002,535,424
2Dec 25, 2024 22:254,10523,258,8582,408,0001,204,0002,535,424
3Dec 25, 2024 22:274,10825,819,5852,410,0001,205,0002,453,504
4Dec 25, 2024 22:274,11319,747,8342,413,0001,206,0002,461,696
5Dec 25, 2024 22:254,19015,833,9652,458,0001,229,0002,535,424
6Dec 25, 2024 22:274,31719,697,2032,533,0001,266,0002,531,328