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 21:49zielajzielajScore: 3,706Success
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 20:023,59021,115,3831,053,0002,106,0002,535,424
2Dec 30, 2024 20:023,60317,110,1001,057,0002,114,0002,535,424
3Dec 30, 2024 20:023,62022,118,5761,062,0002,124,0002,457,600
4Dec 29, 2024 21:493,70620,167,2801,087,0002,174,0002,457,600
5Dec 29, 2024 21:493,76520,851,6201,104,0002,209,0002,465,792
6Dec 29, 2024 21:493,77818,919,4321,108,0002,217,0002,465,792