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 31, 2024 21:35zielajzielajScore: 3,649Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2024 21:353,53920,147,3692,076,0001,038,0002,297,856
2Dec 31, 2024 21:353,54515,343,7541,040,0002,080,0002,461,696
3Dec 31, 2024 21:353,55616,417,3052,086,0001,043,0002,465,792
4Dec 31, 2024 21:353,56721,461,7731,046,0002,093,0002,457,600
5Dec 31, 2024 21:353,64920,637,0781,070,0002,141,0002,457,600
6Dec 31, 2024 21:353,66920,549,8151,076,0002,153,0002,535,424
7Dec 31, 2024 21:353,68329,071,5452,161,0001,080,0002,461,696
8Dec 31, 2024 21:353,69020,861,5081,082,0002,165,0002,465,792
9Dec 31, 2024 21:354,57323,361,0942,012,0002,012,0002,461,696