Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
10
Task/Attractive-numbers/PascalABC.NET/attractive-numbers.pas
Normal file
10
Task/Attractive-numbers/PascalABC.NET/attractive-numbers.pas
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##
|
||||
uses School;
|
||||
|
||||
var attractive :=
|
||||
(1..120)
|
||||
.Where(n -> IsPrime(n.Factorize.Count))
|
||||
.ToList;
|
||||
|
||||
Println($'There are {attractive.Count} attractive numbers up to and including 120:');
|
||||
Println(attractive);
|
||||
Loading…
Add table
Add a link
Reference in a new issue