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.

Date AuthorLanguageStatus Score
Feb 23, 2024 03:53Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Success198,703
Feb 23, 2024 03:52Yuriy LyfenkoYuriy LyfenkoCPPclang++10.0.0Error
Feb 23, 2024 03:50Yuriy LyfenkoYuriy LyfenkoCPPclang++10.0.0Success29,595
Feb 23, 2024 03:48Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Error
Feb 23, 2024 03:44Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Error
Feb 23, 2024 03:41Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Success28,513
Feb 23, 2024 03:37Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Success28,410
Feb 23, 2024 03:12Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Success28,415
Feb 23, 2024 03:11Yuriy LyfenkoYuriy LyfenkoCPPg++9.4.0Success28,273
Feb 22, 2024 16:23Huy Duc LeHuy Duc LeCPPclang++10.0.0Success31,396
Feb 22, 2024 16:23Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 22, 2024 16:22Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,934
Feb 22, 2024 16:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,781
Feb 22, 2024 16:20Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,439+1.24 RP
Feb 22, 2024 16:19Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,001
Feb 22, 2024 16:19Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,158
Feb 22, 2024 16:17Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,322
Feb 20, 2024 08:07Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,926
Feb 20, 2024 08:06Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,436
Feb 20, 2024 08:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Success44,390
Feb 20, 2024 07:48Huy Duc LeHuy Duc LeCPPclang++10.0.0Success31,709
Feb 20, 2024 06:56Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,624
Feb 20, 2024 06:53Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:54Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,756
Feb 20, 2024 03:53Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:50Huy Duc LeHuy Duc LeCPPclang++10.0.0Success38,631
Feb 20, 2024 03:44Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,814
Feb 20, 2024 03:43Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:39Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,547+0.33 RP
Feb 20, 2024 03:35Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,827
Feb 20, 2024 03:34Huy Duc LeHuy Duc LeCPPclang++10.0.0Success46,839
Feb 20, 2024 03:32Huy Duc LeHuy Duc LeCPPclang++10.0.0Success67,968
Feb 20, 2024 03:29Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,177
Feb 20, 2024 03:28Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:18Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,576+1.72 RP
Feb 20, 2024 03:13Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 20, 2024 03:13Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,691
Feb 20, 2024 03:12Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,842
Feb 20, 2024 03:12Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,103
Feb 20, 2024 03:11Huy Duc LeHuy Duc LeCPPclang++10.0.0Success31,093
Feb 20, 2024 03:11Huy Duc LeHuy Duc LeCPPclang++10.0.0Success31,022
Feb 20, 2024 03:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Success30,099
Feb 20, 2024 03:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,298
Feb 20, 2024 03:09Huy Duc LeHuy Duc LeCPPclang++10.0.0Success29,727+24.41 RP
Feb 20, 2024 03:07Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,053+7.21 RP
Feb 19, 2024 15:24AnSaAnSaCPPg++9.4.0Success202,048
Feb 19, 2024 15:16Huy Duc LeHuy Duc LeCPPclang++10.0.0Success35,255
Feb 19, 2024 15:09Huy Duc LeHuy Duc LeCPPclang++10.0.0Success52,210
Feb 19, 2024 15:05Huy Duc LeHuy Duc LeCPPclang++10.0.0Success34,139
Feb 19, 2024 14:58Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 14:37Huy Duc LeHuy Duc LeCPPclang++10.0.0Success35,152
Feb 19, 2024 14:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,215
Feb 19, 2024 14:21Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,188
Feb 19, 2024 14:18Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,811+0.60 RP
Feb 19, 2024 14:03Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 14:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:28Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:27Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:26Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:25Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:16Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 19, 2024 13:02Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,876+0.53 RP
Feb 19, 2024 13:01Huy Duc LeHuy Duc LeCPPclang++10.0.0Success33,047
Feb 19, 2024 13:00Huy Duc LeHuy Duc LeCPPclang++10.0.0Success32,933+115.17 RP
Feb 19, 2024 09:14AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 09:13AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 08:49AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 08:36AnSaAnSaCPPg++9.4.0Error
Feb 19, 2024 07:19nguyendqminhnguyendqminhCPPg++9.4.0Success137,801
Feb 19, 2024 06:56nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:46nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:45nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:41nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:40nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:34nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:32nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:31nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:29nguyendqminhnguyendqminhCPPg++9.4.0Success100,660
Feb 19, 2024 06:26nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:25nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:18nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:10nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:06nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:05nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 06:01nguyendqminhnguyendqminhCPPg++9.4.0Success257,734
Feb 19, 2024 06:00nguyendqminhnguyendqminhCPPg++9.4.0Success258,069
Feb 19, 2024 05:59nguyendqminhnguyendqminhCPPg++9.4.0Success258,388
Feb 19, 2024 05:23nguyendqminhnguyendqminhCPPg++9.4.0Error
Feb 19, 2024 05:23nguyendqminhnguyendqminhCPPg++9.4.0Success100,339+8.68 RP
Feb 19, 2024 05:19nguyendqminhnguyendqminhCPPg++9.4.0Success122,738
Feb 19, 2024 05:03AnSaAnSaCPPg++9.4.0Success214,095
Feb 19, 2024 05:01nguyendqminhnguyendqminhCPPg++9.4.0Success109,909+90.98 RP
Feb 19, 2024 03:03Huy Duc LeHuy Duc LeCPPclang++10.0.0Success57,389
Feb 19, 2024 02:52Huy Duc LeHuy Duc LeCPPclang++10.0.0Success53,057+2.08 RP
Feb 18, 2024 13:30Huy Duc LeHuy Duc LeCPPclang++10.0.0Success53,649+0.91 RP
Feb 18, 2024 13:23Huy Duc LeHuy Duc LeCPPg++9.4.0Success56,016
Feb 18, 2024 13:22Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 13:13Huy Duc LeHuy Duc LeCPPclang++10.0.0Error
Feb 18, 2024 13:10Huy Duc LeHuy Duc LeCPPclang++10.0.0Error