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 28, 2024 14:09zielajzielajScore: 4,067Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2024 14:103,95514,778,4503,480,00002,461,696
2Dec 28, 2024 14:103,96617,934,8062,327,0001,163,0002,297,856
3Dec 28, 2024 14:103,97624,040,2262,333,0001,166,0002,457,600
4Dec 28, 2024 14:094,06724,612,1252,386,0001,193,0002,297,856
5Dec 28, 2024 14:094,17024,448,8692,447,0001,223,0002,461,696
6Dec 28, 2024 14:094,96916,291,8193,280,0001,093,0002,461,696