'Tasks for 01'

This commit is contained in:
Arkadiusz Hypki 2025-02-24 10:09:07 +01:00
parent 061f8e1b48
commit a582bc6e28
207 changed files with 20 additions and 4 deletions
01_Python_C_C++_Java
XX_comparison
_old
01_primes
02_MailClient
02_UsosMockup
02_UsosMockup2/src/net/hypki/USOS
02_UsosMockup4/src/net/hypki/USOS4
03_Sql_html
04_AWK
05_html_jQuery

View File

@ -0,0 +1,5 @@
In the file is_prime there are a few numbers.
1. Write a Python, C/C++ and Java programs and check whether it is a prime number of not.
Remark: There are some algorithms which can simplify this task, like MillerRabin. Please, do not use them. The goal is to compare the code from different programming paradigms.

View File

@ -1,4 +1,5 @@
Create a table with comparison for most popular languages:
* you can use https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/ -- you can go up to Lisp, and you might skip some languages
* summarize most important properties of the languages (e.g. paradighm(s) they follow)
* for which paradigms they are good, which they do not support

6
_old/01_primes/is_prime Normal file
View File

@ -0,0 +1,6 @@
long a = 967938954523L; // for Windows it has to be unsigned long long
unsigned long long i = 18446744073709551557L;
very large prime 30764335913224293741793089483751460355175991453129092078243105216768983877701064201520588135103724505516801655833888715770229455462767162670731729213276461627934166449788319960083350137014207656468145276461315201601220623657351738601909511998767856127706785772715433996063691574284036280147349001102050746978709482330269115000938206667043878959222456670638823479470070899094967583270651599506057338328448283259607951516954363348678525676342859893386273029325373156412564967137663963731303860917438373004747773817080905869559476141139949839173942264517057599758575128777806956660641436317136340480429016551699604867739

Some files were not shown because too many files have changed in this diff Show More