Print all Niven number up to 50, which are the numbers which are divisible the the sum of their digits.
Generating Niven numbers in Raku
Print all Niven number up to 50, which are the numbers which are divisible the the sum of their digits.
Science, Programming, Electronics, Languages
Print all Niven number up to 50, which are the numbers which are divisible the the sum of their digits.
Print all Niven number up to 50, which are the numbers which are divisible the the sum of their digits.
Task 1. Generate a list of Regular numbers, which are the numbers, whose prime factors do not exceed 5.
Task 2. Print Pascal triangle with the given number of rows.
Task 1. Generate a list of Regular numbers, which are the numbers, whose prime factors do not exceed 5.
Task 2. Print Pascal triangle with the given number of rows.
Task 1. Remove leading zeros from positive numbers.
Task 2. Convert a number to the one represented as a base-35 number and back.
Task 1. Remove leading zeros from positive numbers.
Task 2. Convert a number to the one represented as a base-35 number and back.
Task 1. Capitalise all small letters ‘e’ and count the number of replacements in the string ‘Perl Weekly Challenge.’
Task 2. Write a one-liner that, for the numbers from 1 to 20, prints ‘fizz’ if the number is divisible by 3 and ‘buzz’ if it is divisible by 5.
Task 1. Capitalise all small letters ‘e’ and count the number of replacements in the string ‘Perl Weekly Challenge.’
Task 2. Write a one-liner that, for the numbers from 1 to 20, prints ‘fizz’ if the number is divisible by 3 and ‘buzz’ if it is divisible by 5.
Monday morning, and there are new tasks in the new weekly challenge 067. Both of them require similar Raku tools, namely, the cross operator X.
Monday morning, and there are new tasks in the new weekly challenge 067. Both of them require similar Raku tools, namely, the cross operator X.
An interesting task offered on Week 54 of the Perl Weekly Challenge: Print the Collatz Conjecture for the given integer number. The conjecture is that for any starting number, the sequence ends with 1.
An interesting task offered on Week 54 of the Perl Weekly Challenge: Print the Collatz Conjecture for the given integer number. The conjecture is that for any starting number, the sequence ends with 1.
Task 1: Find the first 20 so-called Gapful numbers. Task 2: Print all palindromic ddmmyyyy dates between 2000 and 3000. Task 3: Find the first multiple of the given number, which only contains digits 0 and 1.
Task 1: Find the first 20 so-called Gapful numbers. Task 2: Print all palindromic ddmmyyyy dates between 2000 and 3000. Task 3: Find the first multiple of the given number, which only contains digits 0 and 1.
Here’s another drill offered by the Perl Weekly Challenge on Week 44. The task is to get a string 123456789 and insert the signs + and – between the digits so that the evaluated value of the new string equals 100.
Here’s another drill offered by the Perl Weekly Challenge on Week 44. The task is to get a string 123456789 and insert the signs + and – between the digits so that the evaluated value of the new string equals 100.
A few Raku challenges solutions: printing arrays, generating Leonardo numbers, converting to octals.
A few Raku challenges solutions: printing arrays, generating Leonardo numbers, converting to octals.
A couple of days ago, Perl 7 was announced.
Isn’t that a great news? Well, yes and no. I have my personal feelings about this but I hope I can also see some other things that are not so much subjective.
A couple of days ago, Perl 7 was announced.
Isn’t that a great news? Well, yes and no. I have my personal feelings about this but I hope I can also see some other things that are not so much subjective.
In the second task of this week’s Challenge, you have to find two integers that being powered as xy, give the requested integer number n.
In the second task of this week’s Challenge, you have to find two integers that being powered as xy, give the requested integer number n.
Hey there, there’s another task #066-1 offered by the Perl Weekly Challenge (why still not mentioning Raku in the name?).
Integer-divide the two given integers, $m and $n, without using multiplication, or division, or modulo.
Hey there, there’s another task #066-1 offered by the Perl Weekly Challenge (why still not mentioning Raku in the name?).
Integer-divide the two given integers, $m and $n, without using multiplication, or division, or modulo.
The PDFs of the articles about using wavelets that my thesis supervisor, my co-authors and I wrote in late 1990s and early 2000s in English.
The PDFs of the articles about using wavelets that my thesis supervisor, my co-authors and I wrote in late 1990s and early 2000s in English.
Here is my Raku solution of the Task 1 on Week 65. The task is to print all $n-digit numbers, whose sum of digits is $s.
Here is my Raku solution of the Task 1 on Week 65. The task is to print all $n-digit numbers, whose sum of digits is $s.
Let me demonstrate another interesting one-liner that I find to be a good addition to my last years’s book Raku One-Liners. The task was inspired by this week’s problem from the Perl Weekly Challenge.
Let me demonstrate another interesting one-liner that I find to be a good addition to my last years’s book Raku One-Liners. The task was inspired by this week’s problem from the Perl Weekly Challenge.
In this blog post, I am giving a number of examples of how you can use hashes in the Raku programming language in a correct and incorrect ways and explain how to avoid the chance to mislead yourself.
In this blog post, I am giving a number of examples of how you can use hashes in the Raku programming language in a correct and incorrect ways and explain how to avoid the chance to mislead yourself.
In this chapter, we are implementing the if and else keywords, and are approaching the more complex structures such as loops. After introducing the AST earlier, these tasks become quite doable. Also in this chapter: code blocks are introduced.
In this chapter, we are implementing the if and else keywords, and are approaching the more complex structures such as loops. After introducing the AST earlier, these tasks become quite doable. Also in this chapter: code blocks are introduced.
The compiler becomes bigger and bigger, and we are going to add more syntax to the Lingua language. It is a good time to make a pause in the compiler development and ensure some stability. In this chapter, we will create a test suite, which will allow us to find problems in the implementation and prevent new bugs when extending the language.
The compiler becomes bigger and bigger, and we are going to add more syntax to the Lingua language. It is a good time to make a pause in the compiler development and ensure some stability. In this chapter, we will create a test suite, which will allow us to find problems in the implementation and prevent new bugs when extending the language.
Among the other things that I miss because of all this mess this year, or as Dutch call it ‘coronacrisis’, are the two trips I planned to do this spring: to see early spring in Ukraine and to enjoy the summer forests of Latvia. There was an amazing car trip around Riga and suburbs last … Continue reading “The last con”
In this chapter, we traverse the AST that was built earlier and create the methods to evaluate (or execute) the nodes according to their meaning. Another interesting feature of Raku, the so called getters, is used in the code.
In this chapter, we traverse the AST that was built earlier and create the methods to evaluate (or execute) the nodes according to their meaning. Another interesting feature of Raku, the so called getters, is used in the code.