(MAGMAMagma) [ p: p in PrimesUpTo(10000) | &+Intseq(p) mod 5 eq 0 ]; // Vincenzo Librandi, Apr 02 2011
(MAGMAMagma) [ p: p in PrimesUpTo(10000) | &+Intseq(p) mod 5 eq 0 ]; // Vincenzo Librandi, Apr 02 2011
reviewed
approved
proposed
reviewed
editing
proposed
Intersection of A000040 (primes) and A227793 (sum of digits in 5Z). - M. F. Hasler, Mar 10 2022
(PARI) select( {is_A062340(n)=sumdigits(n)%5==0&&isprime(n)}, primes([1, 2000])) \\ M. F. Hasler, Mar 10 2022
Cf. A007953, (sum of digits), A227793 (sum of digits divisible by 5).
Has as subsequence A062341 (primes with sum of digits s = 5), A107579 (s = 10), A106760 (s = 20), A106763 (s = 25), A106770 (s = 35), A106773 (s = 40), A106780 (s = 50), A106783 (s = 55), A107619 (s = 65) and A181321 (s = 70).
Cf. A062340 (equivalent for 8).
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
editing
proposed