© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. IndenJava Challengeshttps://doi.org/10.1007/978-1-4842-7395-1_2

2. Mathematical Problems

Michael Inden1  
(1)
Zurich, Switzerland
 

In this chapter, you will learn some basics about a few mathematical operations, including prime numbers and the Roman numeral system. Additionally, I present a couple of ideas for number games. With this knowledge, you should be well prepared for a multitude of exercises.

2.1 Introduction

2.1.1 Short Introduction to Division and Modulo

Besides multiplication and division, the modulo operation (%) is also used quite frequently. It is intended to determine the remainder of a division. Let’s illustrate this as follows for integers ...

Get Java Challenges: 100+ Proven Tasks that Will Prepare You for Anything now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.